Fix GCC 13 Release build test failures (#7364)#8176
Fix GCC 13 Release build test failures (#7364)#8176damyanp wants to merge 2 commits intomicrosoft:mainfrom
Conversation
GCC 13 (e.g. 13.3.0 shipped with Ubuntu 24.04) has a known miscompilation bug in -funswitch-loops (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109934) that causes widespread test failures when building DXC at -O3. Disable -funswitch-loops for GCC 13, and update the CI pipeline from Ubuntu-22.04 to Ubuntu-24.04 (which ships GCC 13 as default), removing the workaround from microsoft#7365. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
DXC doesn't build correctly with gcc-14 - It looks like this reproduces the gcc-14.2 bug: |
Remove explicit gcc version suffix from Linux_Gcc_Release and Linux_Gcc_Debug builds, and remove the apt-get install step for g++. This lets the builds use whichever GCC ships with the build image. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Given this, should gcc-13 be chosen explicitly, or |
Assuming that it really is this issue (I've not been able to find a bug report that convincingly looks like it covers it) then the bug is present in 14.2 but not in 14.3. I'd rather cross this bridge when/if we come to it than pre-emptively disable optimizations that might be masking UB in our code.
I think that this might actually be the case as well. Ubuntu-latest was another option that I avoided because I didn't want major upgrades happening without our involvement. |
GCC 13 (e.g. 13.3.0 shipped with Ubuntu 24.04) has a known miscompilation bug in -funswitch-loops (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109934) that causes widespread test failures when building DXC at -O3.
Disable -funswitch-loops for GCC 13, and update the CI pipeline from Ubuntu-22.04 to Ubuntu-24.04 (which ships GCC 13 as default), removing the workaround from #7365.
Fixes #7364