summaryrefslogtreecommitdiffstats
path: root/fortran
diff options
context:
space:
mode:
Diffstat (limited to 'fortran')
-rw-r--r--fortran/config/intel-flags15
1 files changed, 13 insertions, 2 deletions
diff --git a/fortran/config/intel-flags b/fortran/config/intel-flags
index 99b2537..e3e28f3 100644
--- a/fortran/config/intel-flags
+++ b/fortran/config/intel-flags
@@ -53,14 +53,14 @@ if test "X-icc" = "X-$cc_vendor"; then
#esac
# General
- CFLAGS="$CFLAGS $arch -Wall -Wcheck"
+ CFLAGS="${CFLAGS:--std=c99} $arch"
# Production
PROD_CFLAGS="-O3"
PROD_CPPFLAGS=
# Debug
- DEBUG_CFLAGS="-g"
+ DEBUG_CFLAGS="-Wcheck -Wall -g -O0"
DEBUG_CPPFLAGS=
# Profile
@@ -73,6 +73,17 @@ if test "X-icc" = "X-$cc_vendor"; then
fi
+# Version specific ICC flags
+#
+# 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-8.0*)
+ # v8.0 -O3 infinite loops when compiling test/tselect.c. Use -O2.
+ PROD_CFLAGS="-O2"
+ ;;
+esac
+
# Clear cc info if no flags set
if test "X-$cc_flags_set" = "X-"; then
cc_vendor=