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 fa85720..529d4a9 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 cd212fa..5f56385 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