From 878eeecd5abd5672ec006cb094d111400a977c830d70df3f5242d73860d44928 Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Mon, 22 May 2017 11:55:44 +0000 Subject: [PATCH 1/4] - only optimize with -O2 for openSUSE > 13.2/Leap 42 (gcc7) (boo#1040105) OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=589 --- MozillaFirefox.changes | 6 ++++++ MozillaFirefox.spec | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/MozillaFirefox.changes b/MozillaFirefox.changes index 5c71efb..3781c49 100644 --- a/MozillaFirefox.changes +++ b/MozillaFirefox.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon May 22 11:54:16 UTC 2017 - wr@rosenauer.org + +- only optimize with -O2 for openSUSE > 13.2/Leap 42 (gcc7) + (boo#1040105) + ------------------------------------------------------------------- Mon May 8 08:28:17 UTC 2017 - wr@rosenauer.org diff --git a/MozillaFirefox.spec b/MozillaFirefox.spec index da0406f..893805d 100644 --- a/MozillaFirefox.spec +++ b/MozillaFirefox.spec @@ -337,6 +337,10 @@ ac_add_options --enable-default-toolkit=cairo-gtk2 %if 0%{?build_hardened} ac_add_options --enable-pie %endif +# gcc7 (boo#1040105) +%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 From 278dea96e3b062ac5c53ab07d7d90477623f65c547bd766c59d381c1cc786afc Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Tue, 23 May 2017 14:01:40 +0000 Subject: [PATCH 2/4] - remove -fno-inline-small-functions OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=590 --- MozillaFirefox.changes | 3 ++- MozillaFirefox.spec | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/MozillaFirefox.changes b/MozillaFirefox.changes index 3781c49..0a006d8 100644 --- a/MozillaFirefox.changes +++ b/MozillaFirefox.changes @@ -1,8 +1,9 @@ ------------------------------------------------------------------- -Mon May 22 11:54:16 UTC 2017 - wr@rosenauer.org +Tue May 23 14:00:40 UTC 2017 - wr@rosenauer.org - only optimize with -O2 for openSUSE > 13.2/Leap 42 (gcc7) (boo#1040105) +- remove -fno-inline-small-functions ------------------------------------------------------------------- Mon May 8 08:28:17 UTC 2017 - wr@rosenauer.org diff --git a/MozillaFirefox.spec b/MozillaFirefox.spec index 893805d..46994f3 100644 --- a/MozillaFirefox.spec +++ b/MozillaFirefox.spec @@ -295,9 +295,9 @@ export BUILD_OFFICIAL=1 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 / }" From cce32d5c86970d1a09d2f6375a9adbb56a63e38013c7c6a6c644faa15ae55b4d Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Wed, 24 May 2017 14:54:04 +0000 Subject: [PATCH 3/4] - remove -fno-inline-small-functions which breaks with gcc7 OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=591 --- MozillaFirefox.changes | 3 +-- MozillaFirefox.spec | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/MozillaFirefox.changes b/MozillaFirefox.changes index 0a006d8..02b1589 100644 --- a/MozillaFirefox.changes +++ b/MozillaFirefox.changes @@ -1,9 +1,8 @@ ------------------------------------------------------------------- Tue May 23 14:00:40 UTC 2017 - wr@rosenauer.org -- only optimize with -O2 for openSUSE > 13.2/Leap 42 (gcc7) +- remove -fno-inline-small-functions which breaks with gcc7 (boo#1040105) -- remove -fno-inline-small-functions ------------------------------------------------------------------- Mon May 8 08:28:17 UTC 2017 - wr@rosenauer.org diff --git a/MozillaFirefox.spec b/MozillaFirefox.spec index 46994f3..c936225 100644 --- a/MozillaFirefox.spec +++ b/MozillaFirefox.spec @@ -337,10 +337,6 @@ ac_add_options --enable-default-toolkit=cairo-gtk2 %if 0%{?build_hardened} ac_add_options --enable-pie %endif -# gcc7 (boo#1040105) -%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 From 1dc1d33afabc8931b1465c5852e5b5a9e503cdc3f800b46b6470a538cc3174d7 Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Wed, 24 May 2017 18:34:48 +0000 Subject: [PATCH 4/4] - remove -fno-inline-small-functions and explicitely optimize with -O2 for openSUSE > 13.2/Leap 42 to work with gcc7 (boo#1040105) OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=592 --- MozillaFirefox.changes | 4 ++-- MozillaFirefox.spec | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/MozillaFirefox.changes b/MozillaFirefox.changes index 02b1589..68f9c82 100644 --- a/MozillaFirefox.changes +++ b/MozillaFirefox.changes @@ -1,8 +1,8 @@ ------------------------------------------------------------------- Tue May 23 14:00:40 UTC 2017 - wr@rosenauer.org -- remove -fno-inline-small-functions which breaks with gcc7 - (boo#1040105) +- 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 diff --git a/MozillaFirefox.spec b/MozillaFirefox.spec index c936225..3a05e69 100644 --- a/MozillaFirefox.spec +++ b/MozillaFirefox.spec @@ -337,6 +337,10 @@ ac_add_options --enable-default-toolkit=cairo-gtk2 %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