remove -fno-inline-small-functions and explicitely optimize with firefox52
authorWolfgang Rosenauer <wr@rosenauer.org>
Sun, 04 Jun 2017 09:48:10 +0200
branchfirefox52
changeset 976 14640a79141f
parent 975 3dafce6546a4
child 980 c0c95a18e37c
remove -fno-inline-small-functions and explicitely optimize with
-O2 for openSUSE > 13.2/Leap 42 to work with gcc7 (boo#1040105)
MozillaFirefox/MozillaFirefox.changes
MozillaFirefox/MozillaFirefox.spec
MozillaFirefox/firefox-esr.changes
MozillaFirefox/firefox-esr.spec
--- a/MozillaFirefox/MozillaFirefox.changes	Tue May 09 07:52:20 2017 +0200
+++ b/MozillaFirefox/MozillaFirefox.changes	Sun Jun 04 09:48:10 2017 +0200
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Tue May 23 14:00:40 UTC 2017 - wr@rosenauer.org
+
+- remove -fno-inline-small-functions and explicitely optimize with
+  -O2 for openSUSE > 13.2/Leap 42 to work with gcc7 (boo#1040105)
+
+-------------------------------------------------------------------
 Mon May  8 08:28:17 UTC 2017 - wr@rosenauer.org
 
 - update to Firefox 52.1.1
--- a/MozillaFirefox/MozillaFirefox.spec	Tue May 09 07:52:20 2017 +0200
+++ b/MozillaFirefox/MozillaFirefox.spec	Sun Jun 04 09:48:10 2017 +0200
@@ -295,9 +295,9 @@
 export MOZ_TELEMETRY_REPORTING=1
 export MOZ_GOOGLE_API_KEY=%{_google_api_key}
 export CFLAGS="%{optflags} -fno-strict-aliasing"
-# boo#986541: add -fno-delete-null-pointer-checks and -fno-inline-small-functions for gcc6
+# boo#986541: add -fno-delete-null-pointer-checks for gcc6
 %if 0%{?suse_version} > 1320
-export CFLAGS="$CFLAGS -fno-delete-null-pointer-checks -fno-inline-small-functions"
+export CFLAGS="$CFLAGS -fno-delete-null-pointer-checks"
 %endif
 %ifarch %arm
 export CFLAGS="${CFLAGS/-g / }"
@@ -337,6 +337,10 @@
 %if 0%{?build_hardened}
 ac_add_options --enable-pie
 %endif
+# gcc7 (boo#104105)
+%if 0%{?suse_version} > 1320
+ac_add_options --enable-optimize="-g -O2"
+%endif
 %ifarch %ix86 %arm
 %if 0%{?suse_version} > 1230
 ac_add_options --disable-optimize
--- a/MozillaFirefox/firefox-esr.changes	Tue May 09 07:52:20 2017 +0200
+++ b/MozillaFirefox/firefox-esr.changes	Sun Jun 04 09:48:10 2017 +0200
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Tue May 23 14:00:40 UTC 2017 - wr@rosenauer.org
+
+- remove -fno-inline-small-functions and explicitely optimize with
+  -O2 for openSUSE > 13.2/Leap 42 to work with gcc7 (boo#1040105)
+
+-------------------------------------------------------------------
 Mon May  8 08:28:17 UTC 2017 - wr@rosenauer.org
 
 - update to Firefox 52.1.1
--- a/MozillaFirefox/firefox-esr.spec	Tue May 09 07:52:20 2017 +0200
+++ b/MozillaFirefox/firefox-esr.spec	Sun Jun 04 09:48:10 2017 +0200
@@ -296,9 +296,9 @@
 export MOZ_TELEMETRY_REPORTING=1
 export MOZ_GOOGLE_API_KEY=%{_google_api_key}
 export CFLAGS="%{optflags} -fno-strict-aliasing"
-# boo#986541: add -fno-delete-null-pointer-checks and -fno-inline-small-functions for gcc6
+# boo#986541: add -fno-delete-null-pointer-checks for gcc6
 %if 0%{?suse_version} > 1320
-export CFLAGS="$CFLAGS -fno-delete-null-pointer-checks -fno-inline-small-functions"
+export CFLAGS="$CFLAGS -fno-delete-null-pointer-checks"
 %endif
 %ifarch %arm
 export CFLAGS="${CFLAGS/-g / }"
@@ -338,6 +338,10 @@
 %if 0%{?build_hardened}
 ac_add_options --enable-pie
 %endif
+# gcc7 (boo#104105)
+%if 0%{?suse_version} > 1320
+ac_add_options --enable-optimize="-g -O2"
+%endif
 %ifarch %ix86 %arm
 %if 0%{?suse_version} > 1230
 ac_add_options --disable-optimize