[cig-commits] [commit] devel: Add -ggdb to recommended gfortran debug flags. (87283b5)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Thu May 1 00:50:58 PDT 2014


Repository : ssh://geoshell/specfem3d

On branch  : devel
Link       : https://github.com/geodynamics/specfem3d/compare/cb32c88d6155d7974561a6f72fc17aea596e2c4d...50aa953c1db3f565d76415f5305410a529996b75

>---------------------------------------------------------------

commit 87283b5d6d3ac1674628ddea0d2f4c002f20aab8
Author: Elliott Sales de Andrade <esalesde at physics.utoronto.ca>
Date:   Mon Apr 28 17:48:51 2014 -0400

    Add -ggdb to recommended gfortran debug flags.
    
    Without this flag, most backtraces are useless since there's no line
    number or even function name.


>---------------------------------------------------------------

87283b5d6d3ac1674628ddea0d2f4c002f20aab8
 flags.guess | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flags.guess b/flags.guess
index dafda52..9152895 100644
--- a/flags.guess
+++ b/flags.guess
@@ -71,7 +71,7 @@ case $my_FC in
         # GNU gfortran
         #
         DEF_FFLAGS="-std=f2003 -fimplicit-none -frange-check -O2 -DFORCE_VECTORIZATION -fmax-errors=10 -pedantic -pedantic-errors -Waliasing -Wampersand -Wcharacter-truncation -Wline-truncation -Wsurprising -Wno-tabs -Wunderflow -ffpe-trap=invalid,zero,overflow"
-        # for debugging, add -fbacktrace -fbounds-check -ffpe-trap=overflow,zero  and suppress -DFORCE_VECTORIZATION
+        # for debugging, add -ggdb -fbacktrace -fbounds-check -ffpe-trap=overflow,zero  and suppress -DFORCE_VECTORIZATION
         ;;
     g95|*/g95)
         #



More information about the CIG-COMMITS mailing list