]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use -ftrapv in debug mode to make sure we catch accidental signed integer overflows.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 3 Jun 2005 16:32:42 +0000 (16:32 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 3 Jun 2005 16:32:42 +0000 (16:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@10837 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4
deal.II/configure

index 72583446ba524298430d1f1a25574b39931668bf..d887545326434bb0946e3fdfa0406ca0d911f0e0 100644 (file)
@@ -330,7 +330,7 @@ AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl
   dnl First the flags for gcc compilers
   if test "$GXX" = yes ; then
     CXXFLAGSO="$CXXFLAGS -O2 -Wuninitialized -felide-constructors -ftemplate-depth-128"
-    CXXFLAGSG="$CXXFLAGS -DDEBUG -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Winline -Woverloaded-virtual -Wsynth -Wsign-compare -Wconversion -Wswitch -ftemplate-depth-128"
+    CXXFLAGSG="$CXXFLAGS -DDEBUG -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Winline -Woverloaded-virtual -Wsynth -Wsign-compare -Wconversion -Wswitch -ftemplate-depth-128 -ftrapv"
 
     dnl BOOST uses long long, so don't warn about this
     CXXFLAGSG="$CXXFLAGSG -Wno-long-long"
index 9b2cf634dd471ddcbb3a7effebcdc32dbb780441..8200c931661b49fa1db139cab6f1aec2c4fc0370 100755 (executable)
@@ -3104,7 +3104,7 @@ echo "${ECHO_T}Unrecognized C++ compiler -- Try to go ahead and get help from de
 
     if test "$GXX" = yes ; then
     CXXFLAGSO="$CXXFLAGS -O2 -Wuninitialized -felide-constructors -ftemplate-depth-128"
-    CXXFLAGSG="$CXXFLAGS -DDEBUG -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Winline -Woverloaded-virtual -Wsynth -Wsign-compare -Wconversion -Wswitch -ftemplate-depth-128"
+    CXXFLAGSG="$CXXFLAGS -DDEBUG -pedantic -Wall -W -Wpointer-arith -Wwrite-strings -Winline -Woverloaded-virtual -Wsynth -Wsign-compare -Wconversion -Wswitch -ftemplate-depth-128 -ftrapv"
 
         CXXFLAGSG="$CXXFLAGSG -Wno-long-long"
 
@@ -3986,7 +3986,6 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
         echo "$as_me:$LINENO: result: yes" >&5
 echo "${ECHO_T}yes" >&6
-       CFLAGS="$CFLAGS -wd1572"
 
 else
   echo "$as_me: failed program was:" >&5
@@ -3995,7 +3994,8 @@ sed 's/^/| /' conftest.$ac_ext >&5
 
         echo "$as_me:$LINENO: result: no" >&5
 echo "${ECHO_T}no" >&6
-       CFLAGS="$OLDCFLAGS"
+
+               CFLAGS="$OLDCFLAGS"
 
 fi
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.