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