Bug 1265627 - Don't disable strict aliasing for GCC < 4.5, we don't support those versions anyways. r?ted draft
authorMike Hommey <mh+mozilla@glandium.org>
Tue, 19 Apr 2016 15:09:05 +0900
changeset 353129 4b00776c2c54a66078966e2070c923043f77d98e
parent 353128 02ca7546a76ee2aa48d56b90887c0b67dff43521
child 353130 2accfdb005b6348ee06cadaac3046694df1bc5c3
push id15875
push userbmo:mh+mozilla@glandium.org
push dateTue, 19 Apr 2016 07:07:13 +0000
reviewersted
bugs1265627
milestone48.0a1
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=