Bug 632037 - Optimize more for speed and less for size [r=blassey r=cdleary a=blocking-fennec]
authorMark Finkle <mfinkle@mozilla.com>
Wed, 09 Feb 2011 17:18:09 -0500
changeset 62273 c49735ad9fa0392796e35eb91ee2ff1cf4044b75
parent 62272 2e453fece8c93927d04b5815f31d815ab7489c0a
child 62274 fc87245c91c0c0017d47206e20a60cb10e38e781
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey, cdleary, blocking-fennec
bugs632037
milestone2.0b12pre
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 632037 - Optimize more for speed and less for size [r=blassey r=cdleary a=blocking-fennec]
configure.in
js/src/configure.in
--- a/configure.in
+++ b/configure.in
@@ -2859,19 +2859,19 @@ alpha*-*-osf*)
     AC_DEFINE(NO_PW_GECOS)
     no_x=yes
     _PLATFORM_DEFAULT_TOOLKIT=cairo-android
     TARGET_NSPR_MDCPUCFG='\"md/_linux.cfg\"'
 
     MOZ_GFX_OPTIMIZE_MOBILE=1
     # 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_FLAGS="-O2 -freorder-blocks -fno-reorder-functions -fomit-frame-pointer"
     else
-        MOZ_OPTIMIZE_FLAGS="-Os -freorder-blocks -fno-reorder-functions -fno-omit-frame-pointer"
+        MOZ_OPTIMIZE_FLAGS="-O2 -freorder-blocks -fno-reorder-functions -fno-omit-frame-pointer"
     fi
     # The Maemo builders don't know about this flag
     MOZ_ARM_VFP_FLAGS="-mfpu=vfp"
     ;;
 
 esac
 
 dnl Only one oddball right now (QNX), but this gives us flexibility
--- a/js/src/configure.in
+++ b/js/src/configure.in
@@ -2838,19 +2838,19 @@ alpha*-*-osf*)
     AC_DEFINE(NO_PW_GECOS)
     no_x=yes
     _PLATFORM_DEFAULT_TOOLKIT=cairo-android
     TARGET_NSPR_MDCPUCFG='\"md/_linux.cfg\"'
 
     MOZ_GFX_OPTIMIZE_MOBILE=1
     # 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_FLAGS="-O2 -freorder-blocks -fno-reorder-functions -fomit-frame-pointer"
     else
-        MOZ_OPTIMIZE_FLAGS="-Os -freorder-blocks -fno-reorder-functions -fno-omit-frame-pointer"
+        MOZ_OPTIMIZE_FLAGS="-O2 -freorder-blocks -fno-reorder-functions -fno-omit-frame-pointer"
     fi
     # The Maemo builders don't know about this flag
     MOZ_ARM_VFP_FLAGS="-mfpu=vfp"
     ;;
 
 esac
 
 dnl Only one oddball right now (QNX), but this gives us flexibility