diff options
author | swhite <swhite@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2006-06-09 14:28:59 +0000 |
---|---|---|
committer | swhite <swhite@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2006-06-09 14:28:59 +0000 |
commit | 2fef8fac1ae7bd9f0681435bedd75104ae7e3e25 (patch) | |
tree | ae6f3ffccc68bf43ada786ed1a898a5fe62cf69a /lib/make/known-architectures | |
parent | 7b0ceed182ffef88fb063b2eb0fec0608c73e978 (diff) |
PG compiler flags improvements
1) Got rid of
--instantiate=used
which only irritates recent compilers.
2) Broke off warning settings which were previously part of
e.g. F90_OPTIMISE_FLAGS into F90_WARN_FLAGS
so now you see most of the "loop unroll" etc warnings only if
WARN is on.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4318 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/known-architectures')
-rw-r--r-- | lib/make/known-architectures/linux | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/make/known-architectures/linux b/lib/make/known-architectures/linux index 497f9d7b..8225a4a4 100644 --- a/lib/make/known-architectures/linux +++ b/lib/make/known-architectures/linux @@ -198,8 +198,10 @@ else # workaround for calling C varargs functions from Fortran : ${F77FLAGS='-Mx,125,0x200'} : ${F90FLAGS='-Mx,125,0x200'} - : ${F77_OPTIMISE_FLAGS='-fast -Minfo -Mneginfo -Mvect=assoc'} - : ${F90_OPTIMISE_FLAGS='-fast -Minfo -Mneginfo -Mvect=assoc'} + : ${F77_OPTIMISE_FLAGS='-fast'} + : ${F77_WARN_FLAGS='-Mneginfo -Mvect=assoc'} + : ${F90_OPTIMISE_FLAGS='-fast'} + : ${F90_OPTIMISE_FLAGS='-Minfo -Mneginfo -Mvect=assoc'} : ${F77_DEBUG_FLAGS='-g'} : ${F90_DEBUG_FLAGS='-g'} F90_VERSION="`$F90 -V 2>&1 | grep -i pgf90 | head -n1`" @@ -382,7 +384,8 @@ else CC_VERSION="`$CC -v 2>&1 | grep -i version | head -n1`" ;; pgcc) - : ${C_OPTIMISE_FLAGS='-fast -O3 -Minfo -Mneginfo -Mvect=assoc'} + : ${C_OPTIMISE_FLAGS='-fast -O3'} + : ${C_WARN_FLAGS='-Minfo -Mneginfo -Mvect=assoc'} CC_VERSION="`$CC -V 2>&1 | grep -i pgcc | head -n1`" ;; pathcc) @@ -434,8 +437,9 @@ else CXX_VERSION="`$CXX -v 2>&1 | grep -i version | head -n1`" ;; pgCC) - : ${CXXFLAGS='--no_using_std --instantiate=used'} - : ${CXX_OPTIMISE_FLAGS='-fast -O3 -Minfo -Mneginfo -Mvect=assoc'} + : ${CXXFLAGS='--no_using_std'} + : ${CXX_OPTIMISE_FLAGS='-fast -O3'} + : ${CXX_WARN_FLAGS='-Minfo -Mneginfo -Mvect=assoc'} if test `basename $LD` = 'pgCC'; then : ${LDFLAGS='-Wl,--allow-multiple-definition'} fi |