[mpich2-commits] r5451 - mpich2/trunk/confdb

balaji at mcs.anl.gov balaji at mcs.anl.gov
Mon Oct 12 17:10:27 CDT 2009


Author: balaji
Date: 2009-10-12 17:10:27 -0500 (Mon, 12 Oct 2009)
New Revision: 5451

Modified:
   mpich2/trunk/confdb/aclocal_cc.m4
Log:
Added a noopt flag to --enable-strict to allow for all flags, except
-O2 to be used. This allows us to use --enable-strict=noopt and
--enable-g together without worrying about instruction reordering in
gdb/ddd.

Reviewed by goodell.


Modified: mpich2/trunk/confdb/aclocal_cc.m4
===================================================================
--- mpich2/trunk/confdb/aclocal_cc.m4	2009-10-12 22:04:15 UTC (rev 5450)
+++ mpich2/trunk/confdb/aclocal_cc.m4	2009-10-12 22:10:27 UTC (rev 5451)
@@ -546,7 +546,6 @@
     # argument in the for-loop below and append them to the CFLAGS with a space
     # as the separator instead
     pac_common_strict_flags="
-        -O2
         -Wall
         -Wextra
         -Wno-missing-field-initializers
@@ -584,13 +583,18 @@
     case "$1" in 
         yes|all|posix)
 		enable_strict_done="yes"
-		pac_cc_strict_flags="$pac_common_strict_flags -D_POSIX_C_SOURCE=199506L"
+		pac_cc_strict_flags="-O2 $pac_common_strict_flags -D_POSIX_C_SOURCE=199506L"
         ;;
 
         noposix)
 		enable_strict_done="yes"
+		pac_cc_strict_flags="-O2 $pac_common_strict_flags"
+        ;;
+
+	noopt)
+		enable_strict_done="yes"
 		pac_cc_strict_flags="$pac_common_strict_flags"
-        ;;
+	;;
         
         no)
 		# Accept and ignore this value



More information about the mpich2-commits mailing list