Gentoo Archives: gentoo-commits

From: Jory Pratt <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mozilla:master commit in: eclass/
Date: Wed, 31 May 2017 20:19:42
Message-Id: 1496261947.96e3a035a6d0c39b3816a750eb2282fd60dff3e4.anarchy@gentoo
1 commit: 96e3a035a6d0c39b3816a750eb2282fd60dff3e4
2 Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 31 20:19:07 2017 +0000
4 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
5 CommitDate: Wed May 31 20:19:07 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=96e3a035
7
8 eclass/mozcoreconf-v5: Work around broken optimization level of -Os
9
10 eclass/mozcoreconf-v5.eclass | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
13 diff --git a/eclass/mozcoreconf-v5.eclass b/eclass/mozcoreconf-v5.eclass
14 index 4ecfbd8..854b3cb 100644
15 --- a/eclass/mozcoreconf-v5.eclass
16 +++ b/eclass/mozcoreconf-v5.eclass
17 @@ -158,8 +158,8 @@ mozconfig_init() {
18 # Set optimization level
19 if [[ ${ARCH} == hppa ]]; then
20 mozconfig_annotate "more than -O0 causes a segfault on hppa" --enable-optimize=-O0
21 - elif [[ ${ARCH} == x86 ]]; then
22 - mozconfig_annotate "less then -O2 causes a segfault on x86" --enable-optimize=-O2
23 + elif [[ ${ARCH} =~ (x86|amd64) ]]; then
24 + mozconfig_annotate "Work around broken gcc optimization level" --enable-optimize=-O2
25 elif use custom-optimization || [[ ${ARCH} =~ (alpha|ia64) ]]; then
26 # Set optimization level based on CFLAGS
27 if is-flag -O0; then