]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Remove GCC -no-strict-aliasing compiler flag. 764/head
authorKen Steele <ken@tilera.com>
Fri, 10 Jan 2014 17:36:02 +0000 (12:36 -0500)
committerVictor Julien <victor@inliniac.net>
Sat, 11 Jan 2014 15:26:00 +0000 (16:26 +0100)
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.

configure.ac

index 51a56f667d16a9680236556a6512dd274528eb49..619b53c78df340c54895a800665263fd4f8ec135 100644 (file)
@@ -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"