diff -up firefox-45.4.0esr/config/moz.build.forceO3 firefox-45.4.0esr/config/moz.build --- firefox-45.4.0esr/config/moz.build.forceO3 2016-05-12 19:09:55.000000000 +0200 +++ firefox-45.4.0esr/config/moz.build 2016-09-21 14:33:37.225652630 +0200 @@ -38,7 +38,7 @@ PYTHON_UNIT_TESTS += [ ] if CONFIG['GNU_CC'] and CONFIG['MOZ_OPTIMIZE']: - CFLAGS += ['-O3'] + CFLAGS += ['-O2'] HOST_DEFINES = { 'UNICODE': True, diff -up firefox-45.4.0esr/old-configure.in.forceO3 firefox-45.4.0esr/configure.in --- firefox-45.4.0esr/old-configure.in.forceO3 2016-07-28 18:55:18.000000000 +0200 +++ firefox-45.4.0esr/old-configure.in 2016-09-21 14:32:38.203625716 +0200 @@ -820,7 +820,7 @@ case "$host" in *-linux*|*-kfreebsd*-gnu|*-gnu*) HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX" - HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}" + HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O2}" ;; *) @@ -2115,7 +2115,7 @@ ia64*-hpux*) *-*linux*) if test "$GNU_CC" -o "$GNU_CXX"; then MOZ_PGO_OPTIMIZE_FLAGS="-O3" - MOZ_OPTIMIZE_FLAGS="-Os" + MOZ_OPTIMIZE_FLAGS="" if test -z "$CLANG_CC"; then MOZ_OPTIMIZE_FLAGS="-freorder-blocks $MOZ_OPTIMIZE_FLAGS" fi @@ -6964,7 +6964,7 @@ dnl ==================================== dnl = Enable code optimization. ON by default. dnl ======================================================== if test -z "$MOZ_OPTIMIZE_FLAGS"; then - MOZ_OPTIMIZE_FLAGS="-O" + MOZ_OPTIMIZE_FLAGS="" fi MOZ_ARG_ENABLE_STRING(optimize, diff -up firefox-45.4.0esr/intl/icu/source/runConfigureICU.forceO3 firefox-45.4.0esr/intl/icu/source/runConfigureICU --- firefox-45.4.0esr/intl/icu/source/runConfigureICU.forceO3 2016-05-12 19:09:55.000000000 +0200 +++ firefox-45.4.0esr/intl/icu/source/runConfigureICU 2016-09-21 14:30:54.670573553 +0200 @@ -237,16 +237,16 @@ case $platform in THE_COMP="the GNU C++" CC=gcc; export CC CXX=g++; export CXX - RELEASE_CFLAGS='-O3' - RELEASE_CXXFLAGS='-O3' + RELEASE_CFLAGS='-O2' + RELEASE_CXXFLAGS='-O2' DEBUG_CFLAGS='-g' DEBUG_CXXFLAGS='-g' ;; Linux*) THE_OS="Linux" THE_COMP="the clang or else GNU C++" - RELEASE_CFLAGS='-O3' - RELEASE_CXXFLAGS='-O3' + RELEASE_CFLAGS='-O2' + RELEASE_CXXFLAGS='-O2' DEBUG_CFLAGS='-g' DEBUG_CXXFLAGS='-g' ;; @@ -380,7 +380,7 @@ then then case $CC in gcc|*/gcc|*-gcc-*|*/*-gcc-*) - RELEASE_CFLAGS=-O3 + RELEASE_CFLAGS=-O2 ;; esac fi @@ -392,7 +392,7 @@ then then case $CXX in g++|*/g++|*-g++-*|*/*-g++-*) - RELEASE_CXXFLAGS=-O3 + RELEASE_CXXFLAGS=-O2 ;; esac fi diff -up firefox-45.4.0esr/js/src/ctypes/libffi/m4/ax_cc_maxopt.m4.forceO3 firefox-45.4.0esr/js/src/ctypes/libffi/m4/ax_cc_maxopt.m4 --- firefox-45.4.0esr/js/src/ctypes/libffi/m4/ax_cc_maxopt.m4.forceO3 2016-05-12 19:09:56.000000000 +0200 +++ firefox-45.4.0esr/js/src/ctypes/libffi/m4/ax_cc_maxopt.m4 2016-09-21 14:35:34.100706257 +0200 @@ -138,7 +138,7 @@ if test "$ac_test_CFLAGS" != "set"; then gnu) # default optimization flags for gcc on all systems - CFLAGS="-O3 -fomit-frame-pointer" + CFLAGS="-O2 -fomit-frame-pointer" # -malign-double for x86 systems # LIBFFI -- DON'T DO THIS - CHANGES ABI @@ -163,7 +163,7 @@ if test "$ac_test_CFLAGS" != "set"; then echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" echo "********************************************************" echo "" - CFLAGS="-O3" + CFLAGS="-O2" fi AX_CHECK_COMPILE_FLAG($CFLAGS, [], [ diff -up firefox-45.4.0esr/memory/jemalloc/src/configure.ac.forceO3 firefox-45.4.0esr/memory/jemalloc/src/configure.ac --- firefox-45.4.0esr/memory/jemalloc/src/configure.ac.forceO3 2016-05-12 19:10:00.000000000 +0200 +++ firefox-45.4.0esr/memory/jemalloc/src/configure.ac 2016-09-21 14:36:36.167734912 +0200 @@ -708,7 +708,7 @@ if test "x$enable_debug" = "x0" -a "x$no echo "$CFLAGS $EXTRA_CFLAGS" | grep '\-O' >/dev/null || optimize="yes" if test "x${optimize}" = "xyes" ; then if test "x$GCC" = "xyes" ; then - JE_CFLAGS_APPEND([-O3]) + JE_CFLAGS_APPEND([-O2]) JE_CFLAGS_APPEND([-funroll-loops]) elif test "x$je_cv_msvc" = "xyes" ; then JE_CFLAGS_APPEND([-O2]) diff -up firefox-45.4.0esr/memory/jemalloc/src/configure.forceO3 firefox-45.4.0esr/memory/jemalloc/src/configure diff -up firefox-45.4.0esr/security/nss/coreconf/mkdepend/Makefile.forceO3 firefox-45.4.0esr/security/nss/coreconf/mkdepend/Makefile --- firefox-45.4.0esr/security/nss/coreconf/mkdepend/Makefile.forceO3 2016-05-12 19:09:51.000000000 +0200 +++ firefox-45.4.0esr/security/nss/coreconf/mkdepend/Makefile 2016-09-21 14:34:33.364678334 +0200 @@ -41,7 +41,7 @@ endif include $(DEPTH)/coreconf/rules.mk ifdef GNU_CC -OPTIMIZER = -O3 +OPTIMIZER = -O2 else ifeq ($(OS_ARCH),SunOS) OPTIMIZER = -fast