summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-03-05 23:52:26 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2020-03-05 23:52:26 +0000
commit3bbf3bd432ec1436bef6e2d7ffc83d1c031553ab (patch)
tree3d25396526042118e370e70a7e5d5d010107b3a4 /eclass/toolchain.eclass
parentnet-ftp/proftpd: bump up to proftpd-1.3.7rc3 (diff)
downloadgentoo-3bbf3bd432ec1436bef6e2d7ffc83d1c031553ab.tar.gz
gentoo-3bbf3bd432ec1436bef6e2d7ffc83d1c031553ab.tar.bz2
gentoo-3bbf3bd432ec1436bef6e2d7ffc83d1c031553ab.zip
toolchain.eclass: mangle -O3 down to -O2, not -O0
In bug #701786 'strip-flags' removed all unsafe options first including -O3 and only then mangled -O? to -O2. This effectively made gcc to compalie wth -O0, generated huge slow profile and confused LTO. Let's default to safer -O3->-O2 transition. Reported-by: jeff.lemos.a@gmail.com Closes: https://bugs.gentoo.org/701786 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 62520ae92dff..d69ce9503eaa 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1494,8 +1494,8 @@ downgrade_arch_flags() {
}
gcc_do_filter_flags() {
+ replace-flags -O? -O2 # 701786 (-O3)
strip-flags
- replace-flags -O? -O2
# dont want to funk ourselves
filter-flags '-mabi*' -m31 -m32 -m64