Apply workaround for bug #492 to all GCC 9 versions.

As mentioned on the reviews list, the fix for the bug is not (currently)
present on the gcc-9 branch.

compiler/compile_target_code.m:
scripts/mgnuc.in:
    As above.
This commit is contained in:
Julien Fischer
2020-01-17 20:44:45 +11:00
parent 09877885f9
commit 9eea60f5bf
2 changed files with 2 additions and 3 deletions

View File

@@ -467,8 +467,7 @@ gather_c_compiler_flags(Globals, PIC, AllCFlags) :-
% See: <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91430>
%
GlobalRegisters = yes,
C_CompilerType = cc_gcc(yes(9), yes(GCCMinorVersion), _),
( GCCMinorVersion = 1 ; GCCMinorVersion = 2),
C_CompilerType = cc_gcc(yes(9), _, _),
string.prefix(TargetArch, "x86_64")
)
then

View File

@@ -603,7 +603,7 @@ esac
case "$FULLARCH" in x86_64*)
case $global_regs,$debug in true,true)
case "$C_COMPILER_TYPE" in gcc_9_[12]*)
case "$C_COMPILER_TYPE" in gcc_9_*)
ARCH_OPTS="$ARCH_OPTS -O0" ;;
esac ;;
esac ;;