This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/51663] LTO does not reclaim comdat-local statics
- 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: Wed, 04 Jan 2012 12:49:47 +0000
- Subject: [Bug lto/51663] LTO does not reclaim comdat-local statics
- Auto-submitted: auto-generated
- References: <bug-51663-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51663
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-01-04 12:49:47 UTC ---
It's interesting that with a simplified testcase
struct T;
static T *m ()
{
static T *d;
return d;
}
int
fn ()
{
m ();
}
int main() {}
The C++ frontend with -fwhole-program no longer removes m::d, so this is
maybe a general issue, not LTO specific.