From: wolf Date: Thu, 13 Jun 2002 10:56:27 +0000 (+0000) Subject: Set flags more correctly for pgcc. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c73dbc649716f89eb22d46e02c70fb102f1fbc0;p=dealii-svn.git Set flags more correctly for pgcc. git-svn-id: https://svn.dealii.org/trunk@6087 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index de91f23d0f..83fad211e4 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -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" ;; diff --git a/deal.II/configure b/deal.II/configure index d6ad6aad2c..3d6566f8c2 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -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 - X operator = (T2 &); + X operator = (T2 &){}; }; template X X::operator= (float &);