Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit861f735

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 hereanyway, it's just as easy to cooperate.
1 parent16f8a9e commit861f735

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 seemslikea 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 switchlikethis
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 seemslikea good idea
295-
PGAC_PROG_CC_CFLAGS_OPT([-fno-strict-aliasing])
294+
#ICC prefers to spell the no-strict-aliasing switchlikethis
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)

[8]ページ先頭

©2009-2025 Movatter.jp