]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
For icc8.0 add most pickiest: -strict_ansi
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 11 Mar 2004 08:15:19 +0000 (08:15 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 11 Mar 2004 08:15:19 +0000 (08:15 +0000)
git-svn-id: https://svn.dealii.org/trunk@8713 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4
deal.II/configure

index ff01a514a658b13a3e4a96ee68dc06b324ccc76d..160b346870f91d43ee6424598fe9a682ad3b3000 100644 (file)
@@ -463,12 +463,6 @@ AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl
             CXXFLAGSO="$CXXFLAGSO -opt_report_levelmin"
           fi
 
-          dnl To avoid the annoying `LOOP WAS VECTORIZED' remarks use
-          dnl -vec_report0 for reducing output
-          if test "x$GXX_VERSION" = "xintel_icc8" ; then
-            CXXFLAGSO="$CXXFLAGSO -vec_report0"
-          fi
-
           dnl We would really like to use  -ansi -Xc, since that
          dnl is _very_ picky about standard C++, and is thus very efficient
           dnl in detecting slight standard violations, but these flags are
@@ -478,12 +472,18 @@ AC_DEFUN(DEAL_II_SET_CXX_FLAGS, dnl
           dnl
           dnl Second thing: icc7 allows using alias information for 
           dnl optimization. Use this.
-          if test "x$GXX_VERSION" != "xintel_icc5" -a \
-                  "x$GXX_VERSION" != "xintel_icc6" ; then
+          if test "x$GXX_VERSION" = "xintel_icc7"; then
             CXXFLAGSG="$CXXFLAGSG -Xc -ansi"
             CXXFLAGSO="$CXXFLAGSO -ansi_alias"
-          fi
-
+          dnl For icc8:
+          dnl 1/ set most pickiest check: strict_ansi
+          dnl 2/ to avoid the annoying `LOOP WAS VECTORIZED' remarks
+          dnl    use -vec_report0 for reducing output
+          else if test "x$GXX_VERSION" = "xintel_icc8" ; then
+            CXXFLAGSG="$CXXFLAGSG -strict_ansi"
+            CXXFLAGSO="$CXXFLAGSO -ansi_alias -vec_report0"
+          fi fi
+       
          dnl If we are on an x86 platform, add -tpp6 -axiMK to optimization
          dnl flags
          case "$target" in
index f67578ac58e839fd447a9f053c7c0a0561911cbc..d77791a9a0616c4f48f0dc13250ae581296e1645 100755 (executable)
@@ -3122,15 +3122,13 @@ rm -f conftest.$ac_objext conftest.$ac_ext
             CXXFLAGSO="$CXXFLAGSO -opt_report_levelmin"
           fi
 
-                              if test "x$GXX_VERSION" = "xintel_icc8" ; then
-            CXXFLAGSO="$CXXFLAGSO -vec_report0"
-          fi
-
-                                                                                                 if test "x$GXX_VERSION" != "xintel_icc5" -a \
-                  "x$GXX_VERSION" != "xintel_icc6" ; then
+                                                                                                 if test "x$GXX_VERSION" = "xintel_icc7"; then
             CXXFLAGSG="$CXXFLAGSG -Xc -ansi"
             CXXFLAGSO="$CXXFLAGSO -ansi_alias"
-          fi
+                                                  else if test "x$GXX_VERSION" = "xintel_icc8" ; then
+            CXXFLAGSG="$CXXFLAGSG -strict_ansi"
+            CXXFLAGSO="$CXXFLAGSO -ansi_alias -vec_report0"
+          fi fi
 
                          case "$target" in
            *86*)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.