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>
}
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