summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-24 12:23:24 +0000
committerYang Tse <yangsita@gmail.com>2008-10-24 12:23:24 +0000
commit88398b5e3a31d3bad74bace89ca3b3fa0cc4a809 (patch)
treee0982b7b26ffe4d22c45fc8948a952df5df052cb /m4
parent7735d91fc5f35708054676023f333bc2cf08604f (diff)
downloadc-ares-88398b5e3a31d3bad74bace89ca3b3fa0cc4a809.tar.gz
c-ares-88398b5e3a31d3bad74bace89ca3b3fa0cc4a809.tar.bz2
c-ares-88398b5e3a31d3bad74bace89ca3b3fa0cc4a809.zip
some more temporary magic for the icc seg-fault issue
Diffstat (limited to 'm4')
-rw-r--r--m4/cares-compilers.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/m4/cares-compilers.m4 b/m4/cares-compilers.m4
index b6fbff9..04c0026 100644
--- a/m4/cares-compilers.m4
+++ b/m4/cares-compilers.m4
@@ -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