[m-rev.] for review: fix asm_fast grades with GCC 6

Sebastian Godelet sebastian.godelet at outlook.com
Mon Jul 4 15:43:00 AEST 2016


Hi,

 

After upgrading to Fedora 23 I wasn’t able to compile the asm_fast.gc grade,

I reckon this has to do with the following gcc version:

gcc version 6.1.1 20160621 (Red Hat 6.1.1-3) (GCC)

Seems that they changed the versioning scheme.

 

Cheers,

 

Sebastian.

 

--

 

Fix asm_fast grades with GCC 6.

    

configure.ac:

        Pass -fno-tree-dominator-opts to GCC 6 when using non-local gotos.

 

index d67f890..4feb163 100644

--- a/configure.ac

+++ b/configure.ac

@@ -2571,12 +2571,12 @@ case "$ac_cv_prog_gcc" in yes)

             CFLAGS_FOR_GOTOS="$CFLAGS_FOR_GOTOS -fomit-frame-pointer"

             ;;

         i*86-*|x86_64*)

-            # On x86-64 with GCC 4.8 and 4.9, gcc labels do not work correctly

-            # with -ftree-dominator-opts -- we disable it for x86 in this case

-            # too.

+            # On x86-64 with GCC 4.8 and 4.9 or later gcc labels do not work

+            # correctly with -ftree-dominator-opts -- we disable it for x86

+            # in this case too.

             #

             case "$C_COMPILER_TYPE" in

-                gcc_4_8_*|gcc_4_9_*|gcc_5_*)

+                gcc_4_8_*|gcc_4_9_*|gcc_5_*|gcc_6_*)

                   CFLAGS_FOR_GOTOS="$CFLAGS_FOR_GOTOS -fno-tree-dominator-opts"

                 ;;

             esac

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20160704/a8df36ee/attachment.html>


More information about the reviews mailing list