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