summaryrefslogtreecommitdiffstats
path: root/config/intel-flags
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2010-10-08 20:57:17 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2010-10-08 20:57:17 (GMT)
commit82be08b34a56f0d3e25ec8870e36ad59b4f1f619 (patch)
tree3b3b2bc1c20d1a14ee87fd0a435da3c81ada0476 /config/intel-flags
parent236e8b8885dba83f3319e95e9ae4bd50eb75e7e5 (diff)
downloadhdf5-82be08b34a56f0d3e25ec8870e36ad59b4f1f619.zip
hdf5-82be08b34a56f0d3e25ec8870e36ad59b4f1f619.tar.gz
hdf5-82be08b34a56f0d3e25ec8870e36ad59b4f1f619.tar.bz2
[svn-r19566] Maintenance: Added -O3 to be used with the C Intel v 11 compilers; set default to -O for all
unknown versions of the C Intel compilers. Modified apple config file to display Intel compiler information. Updated RELEASE.txt notes accordingly. Platfroms tested: jam, amani and dubna (Mac 64-bit) with Intel C, Fortran and C++ compilers.
Diffstat (limited to 'config/intel-flags')
-rw-r--r--config/intel-flags14
1 files changed, 7 insertions, 7 deletions
diff --git a/config/intel-flags b/config/intel-flags
index 5bf06d4..e6a9c31 100644
--- a/config/intel-flags
+++ b/config/intel-flags
@@ -70,13 +70,8 @@ if test "X-icc" = "X-$cc_vendor"; then
# Default to C99 standard.
H5_CFLAGS="${H5_CFLAGS:--std=c99 $arch}"
- # Production
- # -Wl,-s to remove all symbols for smaller file
- # O3 optimization causes compilation failures on many platforms;
- # the problem exists in all versions of the icc compiler up to the latest 9.1
- # I changed optimization flag to default -O2. EIP, 2006-08-15
- #PROD_CFLAGS="-O3 -Wl,-s"
- PROD_CFLAGS="-O2 -Wl,-s"
+ # Production is set to default; see settings for specific version further down
+ PROD_CFLAGS="-O"
PROD_CPPFLAGS=
# Debug
@@ -98,6 +93,11 @@ fi
# Please follow the pattern below by adding new versions at the top, copying
# the information from the previous version and adding modifications to that.
case "$cc_vendor-$cc_version" in
+ icc-11*)
+ # -s became obsolete; we also fixed bugs that allow us to enable higher level
+ # of optimization starting with 1.8.7
+ PROD_CFLAGS="-O3"
+ ;;
icc-10*)
PROD_CFLAGS="-O1 -Wl,-s"
;;