https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111619
Richard Biener changed:
What|Removed |Added
Target||x86_64-*-*
Target Milestone|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111619
Sam James changed:
What|Removed |Added
CC||mliska at suse dot cz,
|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111619
--- Comment #8 from Sergei Trofimovich ---
Looks like it's mainly -O0.
Why not try to use at least -O1 for bootstrap? Perhaps it was a safe default to
workaround host compiler bugs in C days.
But nowadays gcc uses -std=c++11 with quite a bit
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111619
--- Comment #7 from Andrew Pinski ---
I am not sure there is not much to be done here really since the issue is
profilingbootstrap will use -O0 for stage1 to make sure we don't run into bugs
in host compiler (though we still run into issues
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111619
--- Comment #6 from Sergei Trofimovich ---
And here is fomr completeness default checking with CC='gcc -g -O2' CXX='g++ -g
-O2':
$ ~/dev/git/gcc/configure --disable-multilib --enable-languages=c,c++ 'CC=gcc
-g -O2' 'CXX=g++ -g -O2'
$
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111619
--- Comment #5 from Sergei Trofimovich ---
(In reply to Andrew Pinski from comment #3)
> Note prev-gcc/cc1plus is compiled at -O0 also which definitely makes things
> worse here.
Also tried with: '--enable-checking=release -O2 -g' as:
$
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111619
--- Comment #4 from Sergei Trofimovich ---
(In reply to Andrew Pinski from comment #2)
> Can you also try with --enable-checking=release to double check that it is
> not the extra compile time checks which is causing issues ...
Added
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111619
--- Comment #3 from Andrew Pinski ---
Note prev-gcc/cc1plus is compiled at -O0 also which definitely makes things
worse here.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111619
--- Comment #2 from Andrew Pinski ---
Can you also try with --enable-checking=release to double check that it is not
the extra compile time checks which is causing issues ...