[m-rev.] diff: workaround gcc 4.4 / 4.6 problems

Julien Fischer juliensf at csse.unimelb.edu.au
Mon Jul 4 17:44:42 AEST 2011


I'm still looking into this - when I find a better workaround I
will add that instead.

-----

Branches: main, 11.07

Workaround problems with GCC 4.4 - 4.6 on i*86 Linux.

scripts/mgnuc.in:
 	Compile some C files with -O0 on i*86 in order to avoid
 	problems with GCC.

Julien.

Index: scripts/mgnuc.in
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/scripts/mgnuc.in,v
retrieving revision 1.134
diff -u -r1.134 mgnuc.in
--- scripts/mgnuc.in	19 Mar 2011 16:43:49 -0000	1.134
+++ scripts/mgnuc.in	4 Jul 2011 07:40:50 -0000
@@ -577,6 +577,16 @@
                  ARCH_OPTS="$ARCH_OPTS -O0" ;;
              *" random.c "*|*" random.dir/random"*".c "*)
                  ARCH_OPTS="$ARCH_OPTS -O0" ;;
+            # Workarounds for internal problems with GCC in asm_fast.gc
+            # on i*86.  Reported against gcc 4.4.5 and 4.6.0.
+            *" ml_backend.ml_closure_gen.c "*)
+                ARCH_OPTS="$ARCH_OPTS -O0" ;;
+            *" ml_backend.ml_unify_gen.c "*)
+                ARCH_OPTS="$ARCH_OPTS -O0" ;;
+            *" ml_backend.rtti_to_mlds.c "*)
+                ARCH_OPTS="$ARCH_OPTS -O0" ;;
+            *" display_report.c "*)
+                ARCH_OPTS="$ARCH_OPTS -O0" ;;
              esac ;;
          sparc*)
              case "$*" in

--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list