summaryrefslogtreecommitdiffstats
path: root/config/intel-flags
diff options
context:
space:
mode:
authorderobins <derobins@jelly.ad.hdfgroup.org>2016-12-02 23:38:55 (GMT)
committerderobins <derobins@jelly.ad.hdfgroup.org>2016-12-02 23:38:55 (GMT)
commit1c5029f21b51977d26b26fd3540065f36d97c683 (patch)
tree233d4d983756cc1b6612a9c11f10c003b12a6cc9 /config/intel-flags
parent2990a638d2edb84c4f189638b8d6a64e20720d81 (diff)
downloadhdf5-1c5029f21b51977d26b26fd3540065f36d97c683.zip
hdf5-1c5029f21b51977d26b26fd3540065f36d97c683.tar.gz
hdf5-1c5029f21b51977d26b26fd3540065f36d97c683.tar.bz2
Updated the icc flags (C flags only).
Diffstat (limited to 'config/intel-flags')
-rw-r--r--config/intel-flags20
1 files changed, 10 insertions, 10 deletions
diff --git a/config/intel-flags b/config/intel-flags
index fe7b06d..ee0d054 100644
--- a/config/intel-flags
+++ b/config/intel-flags
@@ -68,7 +68,7 @@ if test "X-icc" = "X-$cc_vendor"; then
# General
# Default to C99 standard.
- H5_CFLAGS="${H5_CFLAGS:--std=c99 $arch} -Wcheck -Wall"
+ H5_CFLAGS="$H5_CFLAGS $arch -std=c99 -Wcheck -Wall"
# Production
PROD_CFLAGS=
@@ -79,14 +79,14 @@ if test "X-icc" = "X-$cc_vendor"; then
# Symbols
SYMBOLS_CFLAGS="-g"
- NO_SYMBOLS_CFLAGS=
+ NO_SYMBOLS_CFLAGS="-Wl,-s"
# Profiling
# Use this for profiling with gprof
PROFILE_CFLAGS="-p"
# Optimization
- HIGH_OPT_CFLAGS="-O"
+ HIGH_OPT_CFLAGS="-O3"
DEBUG_OPT_CFLAGS="-O0"
NO_OPT_CFLAGS="-O0"
@@ -101,17 +101,17 @@ fi
# the information from the previous version and adding modifications to that.
# The default at the bottom will apply if no earlier version matches.
case "$cc_vendor-$cc_version" in
+ icc-1[5-6]*)
+ H5_CFLAGS="$H5_CFLAGS -Wcomment -Wdeprecated -Wextra-tokens -Wformat -Wformat-security -Wmain -Wmissing-declarations -Wmissing-prototypes -Wp64 -Wpointer-arith -Wreturn-type -Wshadow -Wstrict-prototypes -Wtrigraphs -Wuninitialized -Wunknown-pragmas -Wunused-function -Wunused-variable -Wwrite-strings"
+ ;;
icc-10*)
- PROD_CFLAGS="-O1 -Wl,-s"
+ HIGH_OPT_CFLAGS="-O1"
;;
icc-8.0*)
- # v8.0 -O3 infinite loops when compiling test/tselect.c. Use -O2.
- PROD_CFLAGS="-O2 -Wl,-s"
- ;;
+ # v8.0 -O3 infinite loops when compiling test/tselect.c. Use -O2.
+ HIGH_OPT_CFLAGS="-O2"
+ ;;
icc-*)
- # -s became obsolete; we also fixed bugs that allow us to enable higher level
- # of optimization starting with 1.8.7
- PROD_CFLAGS="-O3"
;;
esac