This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/51663] LTO does not reclaim comdat-local statics


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]