This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/54095] Unnecessary static variable renaming
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 26 Jul 2012 14:48:36 +0000
- Subject: [Bug lto/54095] Unnecessary static variable renaming
- Auto-submitted: auto-generated
- References: <bug-54095-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54095
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-07-26 14:48:36 UTC ---
Created attachment 27879
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27879
incomplete prototype patch
Something like this. But I'll rather wait for the symtab reorg to reach
cgraph/varpool_node_set (and for the partitioning rewrite to go in).
The patch simply, at current lto_promote_cross_file_statics time (which
can still alter the sets), does the mangling of statics. Which means it
works at WPA time and thus will not work with -flto-partition=none. LTRANS
file generation is confused because of conflicting section names if we try
to postpone it to LTRANS phase. For -flto-partition=none we need a "simpler"
hack elsewhere.