AIX xlc has to have strict aliasing turned off. If not, the optimizer
authorYang Tse <yangsita@gmail.com>
Wed, 7 Feb 2007 17:34:30 +0000 (17:34 +0000)
committerYang Tse <yangsita@gmail.com>
Wed, 7 Feb 2007 17:34:30 +0000 (17:34 +0000)
assumes that pointers can only point to an object of the same type.

configure.ac

index 5e16564..dcc53dc 100644 (file)
@@ -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"
        )