Skip to content

Commit 861f735

Browse files
committed
Give ICC its preferred, documented form of the no-strict-aliasing
switch, viz '-fno-alias'. Since we have a separate code path here anyway, it's just as easy to cooperate.
1 parent 16f8a9e commit 861f735

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

configure

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3120,11 +3120,11 @@ echo "${ECHO_T}no" >&6
31203120
fi
31213121
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31223122

3123-
# Not clear if this is needed, but seems like a good idea
3124-
echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3125-
echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6
3123+
# ICC prefers to spell the no-strict-aliasing switch like this
3124+
echo "$as_me:$LINENO: checking if $CC supports -fno-alias" >&5
3125+
echo $ECHO_N "checking if $CC supports -fno-alias... $ECHO_C" >&6
31263126
pgac_save_CFLAGS=$CFLAGS
3127-
CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3127+
CFLAGS="$pgac_save_CFLAGS -fno-alias"
31283128
cat >conftest.$ac_ext <<_ACEOF
31293129
/* confdefs.h. */
31303130
_ACEOF

configure.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $PostgreSQL: pgsql/configure.in,v 1.524 2007/08/20 08:53:12 petere Exp $
2+
dnl $PostgreSQL: pgsql/configure.in,v 1.525 2007/09/11 19:50:25 tgl Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -291,8 +291,8 @@ elif test "$ICC" = yes; then
291291
# Intel's compiler has a bug/misoptimization in checking for
292292
# division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
293293
PGAC_PROG_CC_CFLAGS_OPT([-mp1])
294-
# Not clear if this is needed, but seems like a good idea
295-
PGAC_PROG_CC_CFLAGS_OPT([-fno-strict-aliasing])
294+
# ICC prefers to spell the no-strict-aliasing switch like this
295+
PGAC_PROG_CC_CFLAGS_OPT([-fno-alias])
296296
elif test x"${CC}" = x"xlc"; then
297297
# AIX xlc has to have strict aliasing turned off too
298298
PGAC_PROG_CC_CFLAGS_OPT([-qnoansialias])

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy