Bug 413253. build with -fno-strict-aliasing on GCC platforms. r=ted.mielczarek
authorsayrer@gmail.com
Tue, 29 Jan 2008 11:46:12 -0800
changeset 10934 3b48a0b8a25a0468b893685a4efebe0434b197a4
parent 10933 df6e9de4233471725cdaf96f2c4026f0e7d0a002
child 10935 d7a16c4d5119c8c8b152e266f1e4aed8400e975c
push idunknown
push userunknown
push dateunknown
reviewersted
bugs413253
milestone1.9b3pre
Bug 413253. build with -fno-strict-aliasing on GCC platforms. r=ted.mielczarek
configure.in
--- a/configure.in
+++ b/configure.in
@@ -1228,16 +1228,18 @@ if test "$OS_TARGET" = "WIN16"; then
     OS_RELEASE=
 fi
 OS_CONFIG="${OS_TARGET}${OS_RELEASE}"
 
 dnl ========================================================
 dnl GNU specific defaults
 dnl ========================================================
 if test "$GNU_CC"; then
+    # FIXME: Let us build with strict aliasing. bug 414641.
+    CFLAGS="$CFLAGS -fno-strict-aliasing"
     MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-h,$@ -o $@'
     MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-h,$@ -o $@'
     DSO_LDOPTS='-shared'
     if test "$GCC_USE_GNU_LD"; then
         # Don't allow undefined symbols in libraries
         DSO_LDOPTS="$DSO_LDOPTS -Wl,-z,defs"
     fi
     WARNINGS_AS_ERRORS='-Werror'
@@ -1279,16 +1281,18 @@ else
     fi
 
     DSO_CFLAGS=''
     DSO_PIC_CFLAGS='-KPIC'
     _DEFINES_CFLAGS='$(ACDEFINES) -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT'
 fi
 
 if test "$GNU_CXX"; then
+    # FIXME: Let us build with strict aliasing. bug 414641.
+    CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
     # Turn on GNU specific features
     _WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wall -Wconversion -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor"
     if test "$CPU_ARCH" != "ia64"; then
         # only use -Wcast-align for non-ia64, it's noisy on that platform
         _WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wcast-align"
     fi
 
     _DEFINES_CXXFLAGS='-DMOZILLA_CLIENT -include $(DEPTH)/mozilla-config.h'