From: Ken Steele Date: Fri, 10 Jan 2014 17:36:02 +0000 (-0500) Subject: Remove GCC -no-strict-aliasing compiler flag. X-Git-Tag: suricata-2.0rc1~207 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F764%2Fhead;p=thirdparty%2Fsuricata.git Remove GCC -no-strict-aliasing compiler flag. GCC typically generates better code without the -no-strict-aliasing flag. It is only required if code makes assumptiosn that break strict aliasing. The unit tests pass on x86 and Tile without the flag. --- diff --git a/configure.ac b/configure.ac index 51a56f667d..619b53c78d 100644 --- a/configure.ac +++ b/configure.ac @@ -69,7 +69,7 @@ CFLAGS="$CFLAGS -W" fi fi - CFLAGS="$CFLAGS -Wall -fno-strict-aliasing" + CFLAGS="$CFLAGS -Wall" CFLAGS="$CFLAGS -Wno-unused-parameter" CFLAGS="$CFLAGS -std=gnu99"