public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/41735]  New: [4.5 Regression] inlined comdat function sometimes is emitted
@ 2009-10-17  0:13 pinskia at gcc dot gnu dot org
  2009-10-17  0:13 ` [Bug tree-optimization/41735] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-10-17  0:13 UTC (permalink / raw)
  To: gcc-bugs

Take:
struct g
{
inline g(void);
int t;
};

inline g::g(void)
{
 t = 0;
}


int h(void)
{
  g a;
  return a.t;
}

--- CUT ---
g::g() is being emitted even at -O2 -fno-early-inlining even though it has been
inlined.

Note we either update the cgraph after early inlining or it updates it
correctly.


-- 
           Summary: [4.5 Regression] inlined comdat function sometimes is
                    emitted
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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


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

end of thread, other threads:[~2009-11-12 12:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-17  0:13 [Bug tree-optimization/41735] New: [4.5 Regression] inlined comdat function sometimes is emitted pinskia at gcc dot gnu dot org
2009-10-17  0:13 ` [Bug tree-optimization/41735] " pinskia at gcc dot gnu dot org
2009-10-17  0:21 ` pinskia at gcc dot gnu dot org
2009-10-24 11:59 ` rguenth at gcc dot gnu dot org
2009-11-11 22:24 ` hubicka at gcc dot gnu dot org
2009-11-11 23:46 ` hubicka at gcc dot gnu dot org
2009-11-12 12:37 ` hubicka at gcc dot gnu dot 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).