Bug 1265627 - Don't disable strict aliasing for GCC < 4.5, we don't support those versions anyways. r=ted
authorMike Hommey <mh+mozilla@glandium.org>
Tue, 19 Apr 2016 15:09:05 +0900
changeset 331812 98351b5276d089d88260bdff7035d8ca4af46871
parent 331811 54715f7701edf6971457ae99cafd759f285a8ebc
child 331813 3743c8668bed865368a6bbc7d3721379c1b018e8
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs1265627
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1265627 - Don't disable strict aliasing for GCC < 4.5, we don't support those versions anyways. r=ted
js/src/old-configure.in
--- a/js/src/old-configure.in
+++ b/js/src/old-configure.in
@@ -2414,28 +2414,16 @@ else
     dnl in environment variables to prevent it from breaking silently on
     dnl non-English systems.
     NONASCII=$'\241\241'
     AC_SUBST(NONASCII)
   fi
 fi
 
 dnl ========================================================
-dnl = Disable -fstrict-aliasing with GCC 4.4 and earlier.
-dnl = See bugs 821502 and 832623.
-dnl ========================================================
-if test -n "$GNU_CC" -a -z "$CLANG_CC"; then
-    dnl GCC 3.x isn't supported, so we don't need to check for that.
-    if test "$GCC_MAJOR_VERSION" -eq "4" -a "$GCC_MINOR_VERSION" -lt "5" ; then
-        CFLAGS="$CFLAGS -fno-strict-aliasing"
-        CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
-    fi
-fi
-
-dnl ========================================================
 dnl = Link js shell to system readline
 dnl ========================================================
 MOZ_ARG_ENABLE_BOOL(readline,
 [  --enable-readline       Link js shell to system readline library],
     JS_WANT_READLINE=1,
     JS_WANT_READLINE= )
 
 JS_BUNDLED_EDITLINE=