diff options
| author | Tom Lane | 2007-09-11 19:50:25 +0000 |
|---|---|---|
| committer | Tom Lane | 2007-09-11 19:50:25 +0000 |
| commit | 861f7357b9afbe64a0d9216d2ebb1925ab1dbd4a (patch) | |
| tree | 965546c3158da51e84f843b51537df0704ca9308 /configure.in | |
| parent | 16f8a9e4e1986d570069d7595b1548cda3d0dd2a (diff) | |
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.
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.in b/configure.in index 5b13961f6e3..15cd2dc962a 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.524 2007/08/20 08:53:12 petere Exp $ +dnl $PostgreSQL: pgsql/configure.in,v 1.525 2007/09/11 19:50:25 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]) - # Not clear if this is needed, but seems like a good idea - PGAC_PROG_CC_CFLAGS_OPT([-fno-strict-aliasing]) + # ICC prefers to spell the no-strict-aliasing switch like this + PGAC_PROG_CC_CFLAGS_OPT([-fno-alias]) elif test x"${CC}" = x"xlc"; then # AIX xlc has to have strict aliasing turned off too PGAC_PROG_CC_CFLAGS_OPT([-qnoansialias]) |
