Bug 609796 - Port |Bug 576399 - GCC 4.5 -Os bustage workaround| to c-c r=KaiRo
authorJustin Wood <Callek@gmail.com>
Sat, 20 Nov 2010 22:39:20 -0500
changeset 6744 7b0f676b4d676a94ef51b6ffc4120e567ec544a6
parent 6743 c8adcdc5e20ca48817c9de6535d7545c8e5d0bf1
child 6745 f76f5e2d8f26fd7234b7608a3ac2d6a04b15c409
push idunknown
push userunknown
push dateunknown
reviewersKaiRo
bugs609796, 576399
Bug 609796 - Port |Bug 576399 - GCC 4.5 -Os bustage workaround| to c-c r=KaiRo
configure.in
--- a/configure.in
+++ b/configure.in
@@ -2070,18 +2070,18 @@ ia64*-hpux*)
     if test "$INTEL_CC" -o "$INTEL_CXX"; then
         # -Os has been broken on Intel's C/C++ compilers for quite a
         # while; Intel recommends against using it.
         MOZ_OPTIMIZE_FLAGS="-O2"
         MOZ_DEBUG_FLAGS="-g"
     elif test "$GNU_CC" -o "$GNU_CXX"; then
         GCC_VERSION=`$CC -v 2>&1 | awk '/^gcc version/ { print $3 }'`
         case $GCC_VERSION in
-        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.
+        4.1.*|4.2.*|4.5.*)
+            # -Os is broken on gcc 4.1.x 4.2.x, 4.5.0 we need to tweak it to get good results.
             MOZ_OPTIMIZE_SIZE_TWEAK="-finline-limit=50"
         esac
         # If we're building with --enable-profiling, we need a frame pointer.
         if test -z "$MOZ_PROFILING"; then
             MOZ_OPTIMIZE_FLAGS="-Os -freorder-blocks -fno-reorder-functions -fomit-frame-pointer $MOZ_OPTIMIZE_SIZE_TWEAK"
         else
             MOZ_OPTIMIZE_FLAGS="-Os -freorder-blocks -fno-reorder-functions -fno-omit-frame-pointer $MOZ_OPTIMIZE_SIZE_TWEAK"
         fi