summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-21 17:54:18 +0000
committerYang Tse <yangsita@gmail.com>2008-10-21 17:54:18 +0000
commitf5a8f8c6acc13498716fe345265e7baead13b324 (patch)
tree60077b3d4f889ce0eb07a5037f262cbf97f6e0f4 /m4
parent64c82d08533c2560554bd9009723cfced25957fb (diff)
downloadc-ares-f5a8f8c6acc13498716fe345265e7baead13b324.tar.gz
c-ares-f5a8f8c6acc13498716fe345265e7baead13b324.tar.bz2
c-ares-f5a8f8c6acc13498716fe345265e7baead13b324.zip
some more temporary magic for the icc seg-fault issue
Diffstat (limited to 'm4')
-rw-r--r--m4/cares-compilers.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/m4/cares-compilers.m4 b/m4/cares-compilers.m4
index 9dea76b..a799f8c 100644
--- a/m4/cares-compilers.m4
+++ b/m4/cares-compilers.m4
@@ -915,6 +915,8 @@ AC_DEFUN([CARES_SET_COMPILER_WARNING_OPTS], [
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
dnl Perform extra compile-time code checking
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
+ dnl Generate inlining diagnostics
+ tmp_CPPFLAGS="$tmp_CPPFLAGS -Winline"
fi
dnl Disable using EBP register in optimizations
tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
@@ -922,6 +924,12 @@ AC_DEFUN([CARES_SET_COMPILER_WARNING_OPTS], [
tmp_CFLAGS="$tmp_CFLAGS -fno-builtin"
dnl Disable inlining of functions
tmp_CFLAGS="$tmp_CFLAGS -fno-inline"
+ dnl Disable some IPO for single file optimizations
+ tmp_CFLAGS="$tmp_CFLAGS -fno-inline-functions"
+ dnl Disable inlining of standard library functions
+ tmp_CFLAGS="$tmp_CFLAGS -nolib-inline"
+ dnl Disable inlining of user-defined functions
+ tmp_CFLAGS="$tmp_CFLAGS -Ob0"
dnl Enable floating-point stack integrity checks
tmp_CFLAGS="$tmp_CFLAGS -fpstkchk"
dnl Enable run-time detection of buffer overruns.