]> granicus.if.org Git - curl/commitdiff
some more temporary magic for the icc seg-fault issue
authorYang Tse <yangsita@gmail.com>
Fri, 24 Oct 2008 12:23:24 +0000 (12:23 +0000)
committerYang Tse <yangsita@gmail.com>
Fri, 24 Oct 2008 12:23:24 +0000 (12:23 +0000)
ares/m4/cares-compilers.m4
m4/curl-compilers.m4

index b6fbff98aae5d4c1f56f97d482213465a53f1fb8..04c002631fa0dae69d80fdee8a240f908a8c77a2 100644 (file)
@@ -951,8 +951,17 @@ AC_DEFUN([CARES_SET_COMPILER_WARNING_OPTS], [
         tmp_CFLAGS="$tmp_CFLAGS -no-ansi-alias"
         dnl Value-safe optimizations on floating-point data
         tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
+        dnl Only icc 10.0 or later
+        if test "$compiler_num" -ge "1000"; then
+          dnl Disable vectorizer diagnostic information
+          tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
+        fi
         dnl Disable some optimizations to debug icc 9.1 SIGSEGV
         if test "$INTEL_UNIX_C_OPT_SIGSEGV" = "yes"; then
+          dnl Disable interprocedural optimizations
+          tmp_CFLAGS="$tmp_CFLAGS -no-ip -no-ipo"
+          dnl Separate functions for the linker
+          tmp_CFLAGS="$tmp_CFLAGS -ffunction-sections"
           dnl Disable inlining of user-defined functions
           tmp_CFLAGS="$tmp_CFLAGS -Ob0"
           dnl Disable inline expansion of intrinsic functions
index 75ffac326e4ce6267cbe34c36e143b114f066b9e..e0cf59fe3625eb793f73e329553f81dbfb5633a6 100644 (file)
@@ -957,8 +957,17 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
         tmp_CFLAGS="$tmp_CFLAGS -no-ansi-alias"
         dnl Value-safe optimizations on floating-point data
         tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
+        dnl Only icc 10.0 or later
+        if test "$compiler_num" -ge "1000"; then
+          dnl Disable vectorizer diagnostic information
+          tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
+        fi
         dnl Disable some optimizations to debug icc 9.1 SIGSEGV
         if test "$INTEL_UNIX_C_OPT_SIGSEGV" = "yes"; then
+          dnl Disable interprocedural optimizations
+          tmp_CFLAGS="$tmp_CFLAGS -no-ip -no-ipo"
+          dnl Separate functions for the linker
+          tmp_CFLAGS="$tmp_CFLAGS -ffunction-sections"
           dnl Disable inlining of user-defined functions
           tmp_CFLAGS="$tmp_CFLAGS -Ob0"
           dnl Disable inline expansion of intrinsic functions