mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-09 10:52:24 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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 ;;
|
||||
|
||||
Reference in New Issue
Block a user