/[packages]/updates/5/firefox/current/SOURCES/firefox-43.4.0-optimize-dont-force-O3.patch
ViewVC logotype

Contents of /updates/5/firefox/current/SOURCES/firefox-43.4.0-optimize-dont-force-O3.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1055569 - (show annotations) (download)
Fri Sep 23 17:36:45 2016 UTC (7 years, 6 months ago) by ghibo
File size: 5164 byte(s)
SILENT: upload missed Patch1039
1 diff -up firefox-45.4.0esr/config/moz.build.forceO3 firefox-45.4.0esr/config/moz.build
2 --- firefox-45.4.0esr/config/moz.build.forceO3 2016-05-12 19:09:55.000000000 +0200
3 +++ firefox-45.4.0esr/config/moz.build 2016-09-21 14:33:37.225652630 +0200
4 @@ -38,7 +38,7 @@ PYTHON_UNIT_TESTS += [
5 ]
6
7 if CONFIG['GNU_CC'] and CONFIG['MOZ_OPTIMIZE']:
8 - CFLAGS += ['-O3']
9 + CFLAGS += ['-O2']
10
11 HOST_DEFINES = {
12 'UNICODE': True,
13 diff -up firefox-45.4.0esr/configure.in.forceO3 firefox-45.4.0esr/configure.in
14 --- firefox-45.4.0esr/configure.in.forceO3 2016-07-28 18:55:18.000000000 +0200
15 +++ firefox-45.4.0esr/configure.in 2016-09-21 14:32:38.203625716 +0200
16 @@ -1868,7 +1868,7 @@ case "$host" in
17 *-linux*|*-kfreebsd*-gnu|*-gnu*)
18 HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
19 HOST_NSPR_MDCPUCFG='"md/_linux.cfg"'
20 - HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}"
21 + HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O2}"
22 ;;
23
24 *)
25 @@ -2115,7 +2115,7 @@ ia64*-hpux*)
26 MOZ_OPTIMIZE_FLAGS="-O2"
27 elif test "$GNU_CC" -o "$GNU_CXX"; then
28 MOZ_PGO_OPTIMIZE_FLAGS="-O3"
29 - MOZ_OPTIMIZE_FLAGS="-Os"
30 + MOZ_OPTIMIZE_FLAGS=""
31 if test -z "$CLANG_CC"; then
32 MOZ_OPTIMIZE_FLAGS="-freorder-blocks $MOZ_OPTIMIZE_FLAGS"
33 fi
34 @@ -6964,7 +6964,7 @@ dnl ====================================
35 dnl = Enable code optimization. ON by default.
36 dnl ========================================================
37 if test -z "$MOZ_OPTIMIZE_FLAGS"; then
38 - MOZ_OPTIMIZE_FLAGS="-O"
39 + MOZ_OPTIMIZE_FLAGS=""
40 fi
41
42 if test -z "$MOZ_OPTIMIZE_RUSTFLAGS"; then
43 diff -up firefox-45.4.0esr/intl/icu/source/runConfigureICU.forceO3 firefox-45.4.0esr/intl/icu/source/runConfigureICU
44 --- firefox-45.4.0esr/intl/icu/source/runConfigureICU.forceO3 2016-05-12 19:09:55.000000000 +0200
45 +++ firefox-45.4.0esr/intl/icu/source/runConfigureICU 2016-09-21 14:30:54.670573553 +0200
46 @@ -237,16 +237,16 @@ case $platform in
47 THE_COMP="the GNU C++"
48 CC=gcc; export CC
49 CXX=g++; export CXX
50 - RELEASE_CFLAGS='-O3'
51 - RELEASE_CXXFLAGS='-O3'
52 + RELEASE_CFLAGS='-O2'
53 + RELEASE_CXXFLAGS='-O2'
54 DEBUG_CFLAGS='-g'
55 DEBUG_CXXFLAGS='-g'
56 ;;
57 Linux*)
58 THE_OS="Linux"
59 THE_COMP="the clang or else GNU C++"
60 - RELEASE_CFLAGS='-O3'
61 - RELEASE_CXXFLAGS='-O3'
62 + RELEASE_CFLAGS='-O2'
63 + RELEASE_CXXFLAGS='-O2'
64 DEBUG_CFLAGS='-g'
65 DEBUG_CXXFLAGS='-g'
66 ;;
67 @@ -380,7 +380,7 @@ then
68 then
69 case $CC in
70 gcc|*/gcc|*-gcc-*|*/*-gcc-*)
71 - RELEASE_CFLAGS=-O3
72 + RELEASE_CFLAGS=-O2
73 ;;
74 esac
75 fi
76 @@ -392,7 +392,7 @@ then
77 then
78 case $CXX in
79 g++|*/g++|*-g++-*|*/*-g++-*)
80 - RELEASE_CXXFLAGS=-O3
81 + RELEASE_CXXFLAGS=-O2
82 ;;
83 esac
84 fi
85 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
86 --- firefox-45.4.0esr/js/src/ctypes/libffi/m4/ax_cc_maxopt.m4.forceO3 2016-05-12 19:09:56.000000000 +0200
87 +++ firefox-45.4.0esr/js/src/ctypes/libffi/m4/ax_cc_maxopt.m4 2016-09-21 14:35:34.100706257 +0200
88 @@ -138,7 +138,7 @@ if test "$ac_test_CFLAGS" != "set"; then
89
90 gnu)
91 # default optimization flags for gcc on all systems
92 - CFLAGS="-O3 -fomit-frame-pointer"
93 + CFLAGS="-O2 -fomit-frame-pointer"
94
95 # -malign-double for x86 systems
96 # LIBFFI -- DON'T DO THIS - CHANGES ABI
97 @@ -163,7 +163,7 @@ if test "$ac_test_CFLAGS" != "set"; then
98 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
99 echo "********************************************************"
100 echo ""
101 - CFLAGS="-O3"
102 + CFLAGS="-O2"
103 fi
104
105 AX_CHECK_COMPILE_FLAG($CFLAGS, [], [
106 diff -up firefox-45.4.0esr/memory/jemalloc/src/configure.ac.forceO3 firefox-45.4.0esr/memory/jemalloc/src/configure.ac
107 --- firefox-45.4.0esr/memory/jemalloc/src/configure.ac.forceO3 2016-05-12 19:10:00.000000000 +0200
108 +++ firefox-45.4.0esr/memory/jemalloc/src/configure.ac 2016-09-21 14:36:36.167734912 +0200
109 @@ -708,7 +708,7 @@ if test "x$enable_debug" = "x0" -a "x$no
110 echo "$CFLAGS $EXTRA_CFLAGS" | grep '\-O' >/dev/null || optimize="yes"
111 if test "x${optimize}" = "xyes" ; then
112 if test "x$GCC" = "xyes" ; then
113 - JE_CFLAGS_APPEND([-O3])
114 + JE_CFLAGS_APPEND([-O2])
115 JE_CFLAGS_APPEND([-funroll-loops])
116 elif test "x$je_cv_msvc" = "xyes" ; then
117 JE_CFLAGS_APPEND([-O2])
118 diff -up firefox-45.4.0esr/memory/jemalloc/src/configure.forceO3 firefox-45.4.0esr/memory/jemalloc/src/configure
119 diff -up firefox-45.4.0esr/security/nss/coreconf/mkdepend/Makefile.forceO3 firefox-45.4.0esr/security/nss/coreconf/mkdepend/Makefile
120 --- firefox-45.4.0esr/security/nss/coreconf/mkdepend/Makefile.forceO3 2016-05-12 19:09:51.000000000 +0200
121 +++ firefox-45.4.0esr/security/nss/coreconf/mkdepend/Makefile 2016-09-21 14:34:33.364678334 +0200
122 @@ -41,7 +41,7 @@ endif
123 include $(DEPTH)/coreconf/rules.mk
124
125 ifdef GNU_CC
126 -OPTIMIZER = -O3
127 +OPTIMIZER = -O2
128 else
129 ifeq ($(OS_ARCH),SunOS)
130 OPTIMIZER = -fast

  ViewVC Help
Powered by ViewVC 1.1.30