diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-09-12 14:28:55 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-09-12 14:28:55 +0000 |
commit | e435bddb9c571717c5e87416095871b3a52fb6fc (patch) | |
tree | 92b5465adf9b7da39c13f87ae70d0325c8c87362 | |
parent | 6ee3b2dfe47e561de2f61b8218bd87edcdb64328 (diff) | |
download | postgresql-e435bddb9c571717c5e87416095871b3a52fb6fc.tar.gz |
Revert ill-starred change to ICC anti-aliasing switches. Per
Jeremy Drake.
-rwxr-xr-x | configure | 8 | ||||
-rw-r--r-- | configure.in | 6 |
2 files changed, 7 insertions, 7 deletions
@@ -3120,11 +3120,11 @@ echo "${ECHO_T}no" >&6 fi rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - # ICC prefers to spell the no-strict-aliasing switch like this - echo "$as_me:$LINENO: checking if $CC supports -fno-alias" >&5 -echo $ECHO_N "checking if $CC supports -fno-alias... $ECHO_C" >&6 + # Make sure strict aliasing is off (though this is said to be the default) + echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5 +echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6 pgac_save_CFLAGS=$CFLAGS -CFLAGS="$pgac_save_CFLAGS -fno-alias" +CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF diff --git a/configure.in b/configure.in index 15cd2dc962..10a87348b4 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -dnl $PostgreSQL: pgsql/configure.in,v 1.525 2007/09/11 19:50:25 tgl Exp $ +dnl $PostgreSQL: pgsql/configure.in,v 1.526 2007/09/12 14:28:55 tgl Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -291,8 +291,8 @@ elif test "$ICC" = yes; then # Intel's compiler has a bug/misoptimization in checking for # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS. PGAC_PROG_CC_CFLAGS_OPT([-mp1]) - # ICC prefers to spell the no-strict-aliasing switch like this - PGAC_PROG_CC_CFLAGS_OPT([-fno-alias]) + # Make sure strict aliasing is off (though this is said to be the default) + PGAC_PROG_CC_CFLAGS_OPT([-fno-strict-aliasing]) elif test x"${CC}" = x"xlc"; then # AIX xlc has to have strict aliasing turned off too PGAC_PROG_CC_CFLAGS_OPT([-qnoansialias]) |