[m-rev.] for review: force the use of none grades by default with gcc 4.{2,3}

Julien Fischer juliensf at csse.unimelb.edu.au
Wed Aug 26 14:46:59 AEST 2009


For review.  In particular I would like feedback from on whether people
feel this is (or is not) worth doing.

-------------

configure.in:
 	Force the base grade to be none if we are using gcc versions
 	4.2 or 4.3.  (The current incompatibility with the asm_fast
 	grade has caused problems for a number of users when installing
 	the source distribution.)

 	Note for developers, configure's --with-llds-base-grade
 	option can be used to override this.

Julien.

Index: configure.in
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/configure.in,v
retrieving revision 1.542
diff -u -r1.542 configure.in
--- configure.in	23 Aug 2009 22:52:35 -0000	1.542
+++ configure.in	26 Aug 2009 04:41:48 -0000
@@ -2974,6 +2974,16 @@
                  BEST_LLDS_BASE_GRADE=none
              fi
          fi
+
+        # Force the use of the none base grade if the C compiler
+        # is GCC 4.2 or 4.3.  The asm_fast and reg grades either
+        # don't work or are unstable with those versions.
+        # (See bugs #66 an #78 in the Mercury bug database.)
+        case "$mercury_cv_gcc_version" in
+            4_2_*|4_3_*)
+                BEST_LLDS_BASE_GRADE=none
+            ;;
+        esac
       ;;
  esac


--------------------------------------------------------------------------
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