From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8057 invoked by alias); 17 Oct 2009 00:13:41 -0000 Received: (qmail 8005 invoked by uid 48); 17 Oct 2009 00:13:28 -0000 Date: Sat, 17 Oct 2009 00:13:00 -0000 Subject: [Bug tree-optimization/41735] New: [4.5 Regression] inlined comdat function sometimes is emitted X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-10/txt/msg01500.txt.bz2 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