add gcc 4.2.x to the list of compilers broken with -Os. b=409803
authordwitte@stanford.edu
Sun, 16 Mar 2008 02:43:10 -0700
changeset 13139 a51a433f63f22d33b87f042d70ba656e56c17b26
parent 13138 04953951b6bfb14f76cd4d3b02d0e70ceeb7c3fb
child 13140 9bc5ecdeed69763e1d43beccdf370d034791d9be
push idunknown
push userunknown
push dateunknown
bugs409803
milestone1.9b5pre
add gcc 4.2.x to the list of compilers broken with -Os. b=409803
configure.in
--- a/configure.in
+++ b/configure.in
@@ -1742,18 +1742,18 @@ case "$target" in
       MIPSPRO_CXX=1
     fi
     ;;
 
 *-*linux*)
     if test "$GNU_CC"; then
         GCC_VERSION=`$CC -v 2>&1 | awk '/version/ { print $3 }'`
         case $GCC_VERSION in
-        4.1.*)
-            # -Os is broken on gcc 4.1.x, we need to tweak it to get good results.
+        4.1.*|4.2.*)
+            # -Os is broken on gcc 4.1.x and 4.2.x, we need to tweak it to get good results.
             MOZ_OPTIMIZE_SIZE_TWEAK="-finline-limit=50"
         esac
     fi
 
     TARGET_NSPR_MDCPUCFG='\"md/_linux.cfg\"'
     MOZ_OPTIMIZE_FLAGS="-Os -freorder-blocks -fno-reorder-functions $MOZ_OPTIMIZE_SIZE_TWEAK"
     MOZ_DEBUG_FLAGS="-g -fno-inline"  # most people on linux use gcc/gdb,
                                       # and that combo is not yet good at