aboutsummaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-20 15:56:08 +0000
committerYang Tse <yangsita@gmail.com>2008-10-20 15:56:08 +0000
commit231a51fe7ac4f21d3e8d6dd5b6e039e1aa304406 (patch)
tree20618d78ca0f69f38edbd4b6e96066e409f605d0 /m4
parent8d0cbaf8df1544d288131eb47a04ff0aefd88f16 (diff)
some more temporary magic for the icc seg-fault issue
Diffstat (limited to 'm4')
-rw-r--r--m4/curl-compilers.m416
1 files changed, 11 insertions, 5 deletions
diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4
index 36d8d2774..f43b582cf 100644
--- a/m4/curl-compilers.m4
+++ b/m4/curl-compilers.m4
@@ -22,7 +22,7 @@
#***************************************************************************
# File version for 'aclocal' use. Keep it a single number.
-# serial 37
+# serial 38
dnl CURL_CHECK_COMPILER
@@ -569,10 +569,6 @@ AC_DEFUN([CURL_SET_COMPILER_BASIC_OPTS], [
dnl #981: operands are evaluated in unspecified order
dnl #1469: "cc" clobber ignored
tmp_CPPFLAGS="$tmp_CPPFLAGS -wd 279,981,1469"
- dnl Disable use of ANSI C aliasing rules in optimizations
- tmp_CFLAGS="$tmp_CFLAGS -no-ansi-alias"
- dnl Disable floating point optimizations
- tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
;;
#
INTEL_WINDOWS_C)
@@ -936,6 +932,16 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
tmp_CFLAGS="$tmp_CFLAGS -fpstkchk"
dnl Enable run-time detection of buffer overruns.
tmp_CFLAGS="$tmp_CFLAGS -fstack-security-check"
+ dnl Disable use of ANSI C aliasing rules in optimizations
+ tmp_CFLAGS="$tmp_CFLAGS -no-ansi-alias"
+ dnl Disable floating point optimizations
+ tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
+ dnl Assume aliasing in the program.
+ tmp_CFLAGS="$tmp_CFLAGS -falias"
+ dnl Assume that arguments may be aliased.
+ tmp_CFLAGS="$tmp_CFLAGS -alias-args"
+ dnl Assume aliasing within functions
+ tmp_CFLAGS="$tmp_CFLAGS -ffnalias"
fi
;;
#