Back out bogus strict-aliasing hacks and use -fno-strict-aliasing by
default.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7163 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/Makefile.flags.am b/Makefile.flags.am
index 0acb2d7..e91e9a6 100644
--- a/Makefile.flags.am
+++ b/Makefile.flags.am
@@ -2,13 +2,14 @@
# Baseline flags for all compilations. Aim here is to maximise
# performance and get whatever useful warnings we can out of gcc.
AM_CFLAGS_BASE = -O2 -g -Wmissing-prototypes -Winline -Wall -Wshadow \
- -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations
+ -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations \
+ -fno-strict-aliasing
# These flags are used for building the preload shared objects.
# The aim is to give reasonable performance but also to have good
# stack traces, since users often see stack traces extending
# into (and through) the preloads.
-AM_CFLAGS_PIC = -O -g -fpic -fno-omit-frame-pointer
+AM_CFLAGS_PIC = -O -g -fpic -fno-omit-frame-pointer -fno-strict-aliasing
# Flags for specific targets
AM_FLAG_M3264_X86_LINUX = @FLAG_M32@