[cig-commits] r18505 - seismo/3D/SPECFEM3D_GLOBE/trunk

dkomati1 at geodynamics.org dkomati1 at geodynamics.org
Tue May 31 07:56:55 PDT 2011


Author: dkomati1
Date: 2011-05-31 07:56:55 -0700 (Tue, 31 May 2011)
New Revision: 18505

Modified:
   seismo/3D/SPECFEM3D_GLOBE/trunk/flags.guess
Log:
changed -O3 to -O2 by default for gfortran because of an internal error in gfortran (some versions crash with -O3 because of the number of arguments in some subroutine calls; they should not crash, but they do; reducing the optimization level to -O2 fixes the problem)


Modified: seismo/3D/SPECFEM3D_GLOBE/trunk/flags.guess
===================================================================
--- seismo/3D/SPECFEM3D_GLOBE/trunk/flags.guess	2011-05-31 14:56:08 UTC (rev 18504)
+++ seismo/3D/SPECFEM3D_GLOBE/trunk/flags.guess	2011-05-31 14:56:55 UTC (rev 18505)
@@ -66,7 +66,7 @@
         # GNU gfortran
         #
         if test x"$FLAGS_NO_CHECK" = x; then
-            FLAGS_NO_CHECK="-std=gnu -fimplicit-none -frange-check -O3 -fmax-errors=10 -pedantic -pedantic-errors -Waliasing -Wampersand -Wcharacter-truncation -Wline-truncation -Wsurprising -Wno-tabs -Wunderflow" # -mcmodel=medium
+            FLAGS_NO_CHECK="-std=gnu -fimplicit-none -frange-check -O2 -fmax-errors=10 -pedantic -pedantic-errors -Waliasing -Wampersand -Wcharacter-truncation -Wline-truncation -Wsurprising -Wno-tabs -Wunderflow" # -mcmodel=medium
         fi
         if test x"$FLAGS_CHECK" = x; then
             FLAGS_CHECK="\$(FLAGS_NO_CHECK)"
@@ -75,7 +75,7 @@
         #
         # older gfortran syntax
         # note: -std=f95 can lead to problem: undefined reference to `system_'
-        #           FLAGS_NO_CHECK="-std=gnu -fimplicit-none -frange-check -O3 -Wunused-labels -Waliasing -Wampersand -Wsurprising -Wline-truncation -Wunderflow" # -mcmodel=medium -std=f95
+        #           FLAGS_NO_CHECK="-std=gnu -fimplicit-none -frange-check -O2 -Wunused-labels -Waliasing -Wampersand -Wsurprising -Wline-truncation -Wunderflow" # -mcmodel=medium -std=f95
         #fi
         #if test x"$FLAGS_CHECK" = x; then
         #    FLAGS_CHECK="\$(FLAGS_NO_CHECK)" # -fbounds-check



More information about the CIG-COMMITS mailing list