diff -up thunderbird-45.4.0/mozilla/browser/components/translation/cld2/Makefile.noo3 thunderbird-45.4.0/mozilla/browser/components/translation/cld2/Makefile --- thunderbird-45.4.0/mozilla/browser/components/translation/cld2/Makefile.noo3 2016-09-28 20:38:02.000000000 +0200 +++ thunderbird-45.4.0/mozilla/browser/components/translation/cld2/Makefile 2016-10-01 22:57:35.757907538 +0200 @@ -35,7 +35,7 @@ SOURCES= \ %.o: %.cc $(CC) -Os -I. -o $@ $< -FLAGS=-s USE_TYPED_ARRAYS=2 -O3 -s INLINING_LIMIT=1 --llvm-lto 1 --memory-init-file 1 --closure 1 +FLAGS=-s USE_TYPED_ARRAYS=2 -O2 -s INLINING_LIMIT=1 --llvm-lto 1 --memory-init-file 1 --closure 1 all: $(SOURCES:.cc=.o) $(CC) $(FLAGS) -I. -o cld-worker.js $^ --post-js post.js -s EXPORTED_FUNCTIONS="['_detectLangCode', '_lastResultReliable']" diff -up thunderbird-45.4.0/mozilla/config/moz.build.noo3 thunderbird-45.4.0/mozilla/config/moz.build --- thunderbird-45.4.0/mozilla/config/moz.build.noo3 2016-09-28 20:38:02.000000000 +0200 +++ thunderbird-45.4.0/mozilla/config/moz.build 2016-10-01 22:57:35.757907538 +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 thunderbird-45.4.0/mozilla/configure.in.noo3 thunderbird-45.4.0/mozilla/configure.in --- thunderbird-45.4.0/mozilla/configure.in.noo3 2016-10-01 22:57:35.756907536 +0200 +++ thunderbird-45.4.0/mozilla/configure.in 2016-10-01 22:57:35.758907539 +0200 @@ -1868,7 +1868,7 @@ case "$host" in *-linux*|*-kfreebsd*-gnu|*-gnu*) HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX" HOST_NSPR_MDCPUCFG='"md/_linux.cfg"' - HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}" + HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O2}" ;; *) @@ -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 if test -z "$MOZ_OPTIMIZE_RUSTFLAGS"; then diff -up thunderbird-45.4.0/mozilla/intl/icu/source/runConfigureICU.noo3 thunderbird-45.4.0/mozilla/intl/icu/source/runConfigureICU --- thunderbird-45.4.0/mozilla/intl/icu/source/runConfigureICU.noo3 2016-09-28 20:38:08.000000000 +0200 +++ thunderbird-45.4.0/mozilla/intl/icu/source/runConfigureICU 2016-10-01 23:01:35.449176735 +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 thunderbird-45.4.0/mozilla/js/src/configure.in.noo3 thunderbird-45.4.0/mozilla/js/src/configure.in --- thunderbird-45.4.0/mozilla/js/src/configure.in.noo3 2016-09-28 20:38:09.000000000 +0200 +++ thunderbird-45.4.0/mozilla/js/src/configure.in 2016-10-01 22:57:35.758907539 +0200 @@ -1467,7 +1467,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}" ;; *) @@ -1651,7 +1651,7 @@ ia64*-hpux*) MOZ_OPTIMIZE_FLAGS="-O2" elif test "$GNU_CC" -o "$GNU_CXX"; then MOZ_PGO_OPTIMIZE_FLAGS="-O3" - MOZ_OPTIMIZE_FLAGS="-O3" + MOZ_OPTIMIZE_FLAGS="-O2" if test -z "$CLANG_CC"; then MOZ_OPTIMIZE_FLAGS="-freorder-blocks $MOZ_OPTIMIZE_FLAGS" fi @@ -2812,7 +2812,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 thunderbird-45.4.0/mozilla/js/src/ctypes/libffi/configure.noo3 thunderbird-45.4.0/mozilla/js/src/ctypes/libffi/configure --- thunderbird-45.4.0/mozilla/js/src/ctypes/libffi/configure.noo3 2016-09-28 20:38:08.000000000 +0200 +++ thunderbird-45.4.0/mozilla/js/src/ctypes/libffi/configure 2016-10-01 22:57:35.760907541 +0200 @@ -16193,7 +16193,7 @@ $as_echo "$icc_archflag" >&6; } gnu) # default optimization flags for gcc on all systems - CFLAGS="-O3 -fomit-frame-pointer" + CFLAGS="-O2" # -malign-double for x86 systems # LIBFFI -- DON'T DO THIS - CHANGES ABI @@ -16693,7 +16693,7 @@ fi echo "* (otherwise, a default of CFLAGS=-O3 will be used) *" echo "********************************************************" echo "" - CFLAGS="-O3" + CFLAGS="-O2" fi as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh` diff -up thunderbird-45.4.0/mozilla/js/src/ctypes/libffi/m4/ax_cc_maxopt.m4.noo3 thunderbird-45.4.0/mozilla/js/src/ctypes/libffi/m4/ax_cc_maxopt.m4 --- thunderbird-45.4.0/mozilla/js/src/ctypes/libffi/m4/ax_cc_maxopt.m4.noo3 2016-09-28 20:38:10.000000000 +0200 +++ thunderbird-45.4.0/mozilla/js/src/ctypes/libffi/m4/ax_cc_maxopt.m4 2016-10-01 22:57:35.761907542 +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 thunderbird-45.4.0/mozilla/media/libopus/moz.build.noo3 thunderbird-45.4.0/mozilla/media/libopus/moz.build --- thunderbird-45.4.0/mozilla/media/libopus/moz.build.noo3 2016-09-28 20:38:13.000000000 +0200 +++ thunderbird-45.4.0/mozilla/media/libopus/moz.build 2016-10-01 22:57:35.761907542 +0200 @@ -96,10 +96,10 @@ if CONFIG['CPU_ARCH'] == 'arm' and CONFI # -Os is significantly slower, enable -O3 unless optimization is disabled if CONFIG['MOZ_OPTIMIZE']: CFLAGS += [ - '-O3', + '-O2', ] CXXFLAGS += [ - '-O3', + '-O2', ] # These flags are a lie; they're just used to enable the requisite # opcodes; actual arch detection is done at runtime. diff -up thunderbird-45.4.0/mozilla/memory/jemalloc/src/configure.ac.noo3 thunderbird-45.4.0/mozilla/memory/jemalloc/src/configure.ac --- thunderbird-45.4.0/mozilla/memory/jemalloc/src/configure.ac.noo3 2016-09-28 20:38:16.000000000 +0200 +++ thunderbird-45.4.0/mozilla/memory/jemalloc/src/configure.ac 2016-10-01 22:57:35.761907542 +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 thunderbird-45.4.0/mozilla/modules/freetype2/builds/compiler/gcc.mk.noo3 thunderbird-45.4.0/mozilla/modules/freetype2/builds/compiler/gcc.mk --- thunderbird-45.4.0/mozilla/modules/freetype2/builds/compiler/gcc.mk.noo3 2016-09-28 20:38:17.000000000 +0200 +++ thunderbird-45.4.0/mozilla/modules/freetype2/builds/compiler/gcc.mk 2016-10-01 22:57:35.761907542 +0200 @@ -61,7 +61,7 @@ T := -o$(space) # Use the ANSIFLAGS variable to define the compiler flags used to enfore # ANSI compliance. # -CFLAGS ?= -c -g -O3 -Wall +CFLAGS ?= -c -g -O2 -Wall # ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant. # diff -up thunderbird-45.4.0/mozilla/security/nss/coreconf/mkdepend/Makefile.noo3 thunderbird-45.4.0/mozilla/security/nss/coreconf/mkdepend/Makefile --- thunderbird-45.4.0/mozilla/security/nss/coreconf/mkdepend/Makefile.noo3 2016-09-28 20:38:16.000000000 +0200 +++ thunderbird-45.4.0/mozilla/security/nss/coreconf/mkdepend/Makefile 2016-10-01 22:57:35.761907542 +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