[Bug middle-end/51663] Desirable/undesirable elimination of unused variables & functions at -O0, -O0 -flto and -O0 -fwhole-program
hubicka at ucw dot cz
gcc-bugzilla@gcc.gnu.org
Mon Mar 26 10:49:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51663
--- Comment #10 from Jan Hubicka <hubicka at ucw dot cz> 2012-03-26 10:44:57 UTC ---
> Yes. I think for -O0 -flto we should default to 1:1 partitioning and
> _not_ do the renaming of local symbols though ... of course -O0 -flto
> does not make too much sense?
In longer run, I think it would make sense for slim lto, so one don't need to
ship two versions of a same slim-LTO library (one for optimized builds and one
for unoptimized)
Still the LTO code there will be early optimized...
1:1 partitioning has quite serve performance implications that defeat purpose
of -O0, too.
Honza
More information about the Gcc-bugs
mailing list