aboutsummaryrefslogtreecommitdiff
path: root/m4/curl-compilers.m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-16 01:45:07 +0000
committerYang Tse <yangsita@gmail.com>2008-10-16 01:45:07 +0000
commitfb66d5179663efbc143816d056630e2d98cf98f8 (patch)
tree300d49543568a17eb8d1b173cecd6733e8218a5e /m4/curl-compilers.m4
parent51756641741eea581e654d2d2ae136bca8869e52 (diff)
some more temporary magic for the icc seg-fault issue
Diffstat (limited to 'm4/curl-compilers.m4')
-rw-r--r--m4/curl-compilers.m412
1 files changed, 11 insertions, 1 deletions
diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4
index 860db5200..0ccba96a1 100644
--- a/m4/curl-compilers.m4
+++ b/m4/curl-compilers.m4
@@ -922,10 +922,20 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
if test "$want_warnings" = "yes"; then
if test "$compiler_num" -gt "600"; then
dnl Show errors, warnings, and remarks
- tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall"
+ tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
dnl Perform extra compile-time code checking
tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
fi
+ dnl Disable using EBP register in optimizations
+ tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
+ dnl Disable inline expansion of intrinsic functions
+ tmp_CFLAGS="$tmp_CFLAGS -fno-builtin"
+ dnl Disable inlining of functions
+ tmp_CFLAGS="$tmp_CFLAGS -fno-inline"
+ dnl Enable floating-point stack integrity checks
+ tmp_CFLAGS="$tmp_CFLAGS -fpstkchk"
+ dnl Enable run-time detection of buffer overruns.
+ tmp_CFLAGS="$tmp_CFLAGS -fstack-security-check"
fi
;;
#