Bug 609796 - Port |
Bug 576399 - GCC 4.5 -Os bustage workaround| to c-c r=KaiRo
--- 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