aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-02-07 17:34:30 +0000
committerYang Tse <yangsita@gmail.com>2007-02-07 17:34:30 +0000
commit4ab91a93e8a895fd8c2f9b4523c3129110def8fc (patch)
tree98543fb1d01dfc51fe36e45af128e3345c6cac64
parent6647ca6ec57adeef5e057027141e9cf47889f7aa (diff)
AIX xlc has to have strict aliasing turned off. If not, the optimizer
assumes that pointers can only point to an object of the same type.
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 5e16564ea..dcc53dc6d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1459,6 +1459,10 @@ if test "x$RECENTAIX" = "xyes"; then
XLC="yes"
AC_MSG_RESULT([yes])
CFLAGS="$CFLAGS -qthreaded"
+ dnl AIX xlc has to have strict aliasing turned off. If not,
+ dnl the optimizer assumes that pointers can only point to
+ dnl an object of the same type.
+ CFLAGS="$CFLAGS -qnoansialias"
)