Code

python plugin: stop disabling strict aliasing
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 27 May 2017 14:12:41 +0000 (16:12 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 27 May 2017 14:12:41 +0000 (16:12 +0200)
According to https://bugs.python.org/issue1718153, this has been fixed
in python 2.6, the oldest version we support.

Makefile.am
configure.ac

index fa85720f8bd33754917c3bf26419bd31e2a01fb0..529d4a92095a1aa02efd8deaade22ee99e72993c 100644 (file)
@@ -1389,9 +1389,6 @@ python_la_SOURCES = \
        src/pyvalues.c \
        src/cpython.h
 python_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBPYTHON_CPPFLAGS)
-if COMPILER_IS_GCC
-python_la_CPPFLAGS += -fno-strict-aliasing -Wno-strict-aliasing
-endif
 python_la_LDFLAGS = $(PLUGIN_LDFLAGS) $(LIBPYTHON_LDFLAGS)
 endif
 
index cd212fa9b6a381020a0b04bc04606406502d7fa1..5f56385f6909773f6f7bbf3eb6e7c521b3d7f003 100644 (file)
@@ -37,7 +37,6 @@ AC_PROG_INSTALL
 AC_PROG_LN_S
 AC_PROG_MAKE_SET
 AM_PROG_CC_C_O
-AM_CONDITIONAL([COMPILER_IS_GCC], [test "x$GCC" = "xyes"])
 
 AC_PROG_LEX
 AC_PROG_YACC