This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/51663] Desirable/undesirable elimination of unused variables & functions at -O0, -O0 -flto and -O0 -fwhole-program
- From: "hubicka at ucw dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 26 Mar 2012 10:44:57 +0000
- Subject: [Bug middle-end/51663] Desirable/undesirable elimination of unused variables & functions at -O0, -O0 -flto and -O0 -fwhole-program
- Auto-submitted: auto-generated
- References: <bug-51663-4@http.gcc.gnu.org/bugzilla/>
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