[cig-commits] r18503 - seismo/2D/SPECFEM2D/trunk
dkomati1 at geodynamics.org
dkomati1 at geodynamics.org
Tue May 31 07:55:44 PDT 2011
Author: dkomati1
Date: 2011-05-31 07:55:43 -0700 (Tue, 31 May 2011)
New Revision: 18503
Modified:
seismo/2D/SPECFEM2D/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/2D/SPECFEM2D/trunk/flags.guess
===================================================================
--- seismo/2D/SPECFEM2D/trunk/flags.guess 2011-05-31 14:19:39 UTC (rev 18502)
+++ seismo/2D/SPECFEM2D/trunk/flags.guess 2011-05-31 14:55:43 UTC (rev 18503)
@@ -50,11 +50,11 @@
#
if test x"$FLAGS_NO_CHECK" = x; then
# works with: GNU Fortran (GCC) 4.1.2 20080704
- FLAGS_NO_CHECK="-std=gnu -fimplicit-none -frange-check -O3 -pedantic -pedantic-errors -Waliasing -Wampersand -Wline-truncation -Wsurprising -Wunderflow"
+ FLAGS_NO_CHECK="-std=gnu -fimplicit-none -frange-check -O2 -pedantic -pedantic-errors -Waliasing -Wampersand -Wline-truncation -Wsurprising -Wunderflow"
- # FLAGS_NO_CHECK="-std=f95 -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=f95 -fimplicit-none -frange-check -O2 -fmax-errors=10 -pedantic -pedantic-errors -Waliasing -Wampersand -Wcharacter-truncation -Wline-truncation -Wsurprising -Wno-tabs -Wunderflow" # -mcmodel=medium
# older gfortran syntax
- # FLAGS_NO_CHECK="-std=f95 -fimplicit-none -frange-check -O3 -Wunused-labels -Waliasing -Wampersand -Wsurprising -Wline-truncation -Wunderflow" # -mcmodel=medium
+ # FLAGS_NO_CHECK="-std=f95 -fimplicit-none -frange-check -O2 -Wunused-labels -Waliasing -Wampersand -Wsurprising -Wline-truncation -Wunderflow" # -mcmodel=medium
fi
if test x"$FLAGS_CHECK" = x; then
FLAGS_CHECK="\$(FLAGS_NO_CHECK)" # -fbounds-check
More information about the CIG-COMMITS
mailing list