]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Set flags more correctly for pgcc.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 13 Jun 2002 10:56:27 +0000 (10:56 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 13 Jun 2002 10:56:27 +0000 (10:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@6087 0785d39b-7218-0410-832d-ea1e28bc413d

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

index de91f23d0f1ef5eae55124677d623f6dedcf494e..83fad211e401ac09a809c6b710d33e9574e3f649 100644 (file)
@@ -377,8 +377,20 @@ AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl
           ;;
   
       portland_group)
-         CXXFLAGSG="$CXXFLAGS -DDEBUG"
-          CXXFLAGSO="$CXXFLAGS"
+         dnl Suppress warnings:
+          dnl #111: "Statement unreachable": we use return statements
+         dnl       occasionally after case-switches where you cannot
+         dnl       fall though, but other compilers cometimes complain
+         dnl       that the function might not return with a value, if
+          dnl       it can't figure out that the function always uses
+          dnl       one case. Also: a return statement after a failing
+          dnl       assertion
+          dnl #177: "function declared but not used": might happen with
+          dnl       templates and conditional compilation
+         dnl #175: "out-of-bounds array indices": the same reason as
+         dnl       for Compaq cxx
+         CXXFLAGSG="$CXXFLAGS -DDEBUG -g --display_error_number --diag_suppress 111 --diag_suppress 177 --diag_suppress 175"
+          CXXFLAGSO="$CXXFLAGS -fast -O2 --display_error_number --diag_suppress 111 --diag_suppress 177 --diag_suppress 175"
           CXXFLAGSPIC="-Kpic"
           ;;
 
index d6ad6aad2c3268de8a6cd89ce3a19562600ce356..3d6566f8c2cd86adad23902fe860536d93ca6ac3 100755 (executable)
@@ -2888,8 +2888,8 @@ rm -f conftest.$ac_objext conftest.$ac_ext
           ;;
 
       portland_group)
-         CXXFLAGSG="$CXXFLAGS -DDEBUG"
-          CXXFLAGSO="$CXXFLAGS"
+                                                                                                                 CXXFLAGSG="$CXXFLAGS -DDEBUG -g --display_error_number --diag_suppress 111 --diag_suppress 177 --diag_suppress 175"
+          CXXFLAGSO="$CXXFLAGS -tused -fast -O2"
           CXXFLAGSPIC="-Kpic"
           ;;
 
@@ -3967,7 +3967,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
        struct X
        {
            template <typename T2>
-           X operator = (T2 &);
+           X operator = (T2 &){};
        };
 
        template X X::operator=<float> (float &);

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.