1 |
commit: d0ba26e4a868bddfe2166dd1c37b48f51f8f2d86 |
2 |
Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 31 20:37:11 2017 +0000 |
4 |
Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 31 20:37:11 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=d0ba26e4 |
7 |
|
8 |
Revert "eclass/mozcoreconf-v5: Work around broken optimization level of -Os" |
9 |
|
10 |
This reverts commit 96e3a035a6d0c39b3816a750eb2282fd60dff3e4. |
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 854b3cb..4ecfbd8 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|amd64) ]]; then |
24 |
- mozconfig_annotate "Work around broken gcc optimization level" --enable-optimize=-O2 |
25 |
+ elif [[ ${ARCH} == x86 ]]; then |
26 |
+ mozconfig_annotate "less then -O2 causes a segfault on x86" --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 |