Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/firefox/
Date: Mon, 11 Feb 2019 15:22:23
Message-Id: 1549898513.28ae5ce2652cc4e1d5488034a6dd1c3d1cf26781.whissi@gentoo
1 commit: 28ae5ce2652cc4e1d5488034a6dd1c3d1cf26781
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 11 15:21:32 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 11 15:21:53 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28ae5ce2
7
8 www-client/firefox: use -fdisable-ipa-cdtor workaround when AVX2 is not available
9
10 This commit changes commit da3675965824a307cd16ffc48193929ba8125d98.
11
12 Bug: https://bugs.gentoo.org/677052
13 Package-Manager: Portage-2.3.59, Repoman-2.3.12
14 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
15
16 www-client/firefox/firefox-65.0-r1.ebuild | 14 ++++++++++----
17 1 file changed, 10 insertions(+), 4 deletions(-)
18
19 diff --git a/www-client/firefox/firefox-65.0-r1.ebuild b/www-client/firefox/firefox-65.0-r1.ebuild
20 index 56719723d0a..5fe43fe3bee 100644
21 --- a/www-client/firefox/firefox-65.0-r1.ebuild
22 +++ b/www-client/firefox/firefox-65.0-r1.ebuild
23 @@ -131,10 +131,7 @@ DEPEND="${CDEPEND}
24 # Due to a bug in GCC, profile guided optimization will produce
25 # AVX2 instructions, bug #677052
26 REQUIRED_USE="wifi? ( dbus )
27 - pgo? (
28 - lto
29 - !clang? ( cpu_flags_x86_avx2 )
30 - )"
31 + pgo? ( lto )"
32
33 S="${WORKDIR}/firefox-${PV%_*}"
34
35 @@ -321,6 +318,15 @@ src_configure() {
36 show_old_compiler_warning=1
37 fi
38
39 + if ! use cpu_flags_x86_avx2 ; then
40 + # due to a GCC bug, GCC will produce AVX2 instructions
41 + # even if the CPU doesn't support AVX2, https://gcc.gnu.org/ml/gcc-patches/2018-12/msg01142.html
42 + einfo "Disable IPA cdtor due to bug in GCC and missing AVX2 support -- triggered by USE=lto"
43 + append-ldflags -fdisable-ipa-cdtor
44 + else
45 + einfo "No GCC workaround required, system supports AVX2"
46 + fi
47 +
48 # Linking only works when using ld.gold when LTO is enabled
49 mozconfig_annotate "forcing ld=gold due to USE=lto" --enable-linker=gold
50 fi