summaryrefslogtreecommitdiffstats
path: root/config/pgi-flags
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2010-04-27 19:20:57 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2010-04-27 19:20:57 (GMT)
commit97f4486769962315a8229f16485cd3740b8d22c5 (patch)
tree4e22263e5ff0a89bf940aa915f9d3d06e1144a0e /config/pgi-flags
parentf79ab3b26bbe4a1d5de07970b884c790418815ec (diff)
downloadhdf5-97f4486769962315a8229f16485cd3740b8d22c5.zip
hdf5-97f4486769962315a8229f16485cd3740b8d22c5.tar.gz
hdf5-97f4486769962315a8229f16485cd3740b8d22c5.tar.bz2
[svn-r18637] Description:
Bring PGI compiler flags from 1.8 branch, reducing optimization level with PGI C 9.x Tested on: Linux/64 2.4 (amani) w/PGI C 9.x & 10.x
Diffstat (limited to 'config/pgi-flags')
-rw-r--r--config/pgi-flags17
1 files changed, 10 insertions, 7 deletions
diff --git a/config/pgi-flags b/config/pgi-flags
index 2b03f3d..664b37b 100644
--- a/config/pgi-flags
+++ b/config/pgi-flags
@@ -68,15 +68,18 @@ if test "X-pgcc" = "X-$cc_vendor"; then
#esac
# General
- H5_CFLAGS="$H5_CFLAGS $arch -Minform,warn"
+ H5_CFLAGS="$H5_CFLAGS $arch -c99 -Minform=inform"
# Production
- # Check for MPI wrapper being used and tweak down compiler options
- if test "X-" == "X-$is_mpi"; then
- PROD_CFLAGS="-fast -s -Mnoframe"
- else
- PROD_CFLAGS="-O2 -s"
- fi
+ case "$cc_vendor-$cc_version" in
+ # Tweak down compiler optimizations for v9.x
+ pgcc-9.*)
+ PROD_CFLAGS="-O1 -s"
+ ;;
+ *)
+ PROD_CFLAGS="-fast -s"
+ ;;
+ esac
PROD_CPPFLAGS=
# Debug