public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/51663] New: LTO does not reclaim comdat-local statics
@ 2011-12-23 11:24 rguenth at gcc dot gnu.org
  2012-01-04 12:50 ` [Bug lto/51663] " rguenth at gcc dot gnu.org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-23 11:24 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51663

             Bug #: 51663
           Summary: LTO does not reclaim comdat-local statics
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rguenth@gcc.gnu.org
                CC: hubicka@gcc.gnu.org


struct T;
struct C
{
    typedef ::T T;
    virtual void E();
    static T *m ()
      {
        static T *d;
        return d;
      }
};
int
fn ()
{
  C::m ();
}
int main() {}

The C++ frontend with -fwhole-program reclaims C::m::d, but LTO using
the linker plugin does not.  See PR51650 comment #15 and #16 for some
analysis.


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2020-03-17 12:18 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-23 11:24 [Bug lto/51663] New: LTO does not reclaim comdat-local statics rguenth at gcc dot gnu.org
2012-01-04 12:50 ` [Bug lto/51663] " rguenth at gcc dot gnu.org
2012-01-04 12:54 ` rguenth at gcc dot gnu.org
2012-02-29 15:58 ` hubicka at gcc dot gnu.org
2012-03-20 16:52 ` hubicka at gcc dot gnu.org
2012-03-24 21:08 ` hubicka at gcc dot gnu.org
2012-03-24 21:13 ` hubicka at gcc dot gnu.org
2012-03-24 22:08 ` hubicka at gcc dot gnu.org
2012-03-25 13:40 ` hubicka at gcc dot gnu.org
2012-03-25 13:52 ` hubicka at gcc dot gnu.org
2012-03-26  7:07 ` [Bug middle-end/51663] Desirable/undesirable elimination of unused variables & functions at -O0, -O0 -flto and -O0 -fwhole-program rguenth at gcc dot gnu.org
2012-03-26 10:49 ` hubicka at ucw dot cz
2020-03-17  9:42 ` vries at gcc dot gnu.org
2020-03-17 10:33 ` rguenth at gcc dot gnu.org
2020-03-17 10:50 ` vries at gcc dot gnu.org
2020-03-17 12:16 ` rguenth at gcc dot gnu.org
2020-03-17 12:18 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).