From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11969 invoked by alias); 4 Mar 2011 12:37:10 -0000 Received: (qmail 11884 invoked by uid 22791); 4 Mar 2011 12:37:09 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Mar 2011 12:37:05 +0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/33763] [4.3/4.4/4.5/4.6 Regression] Bogus inlining failed in call to `xxx': redefined extern inline functions are not considered for inlining X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.3.6 X-Bugzilla-Changed-Fields: Last reconfirmed Known to fail Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 04 Mar 2011 12:37:00 -0000 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: 2011-03/txt/msg00398.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33763 Richard Guenther changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2007-10-14 10:26:41 |2011-03-04 10:26:41 Known to fail| |4.6.0 --- Comment #19 from Richard Guenther 2011-03-04 12:36:56 UTC --- Still fails to inline baz (not a regression) and diagnoses this (this is the regression). > When a gnu_inline (or extern inline gnu89) function has a real is redefined, we > don't want any inlining for that function even if it is always_inline, at least > GCC always behaved that way and even on the simpler testcase behaves that way. I don't think this is the desired behavior (nor is it documented). If it is then we should simply drop the always-inline attribute when merging the function decls (basically throw away the inline definition).