From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29330 invoked by alias); 30 Sep 2010 10:19:06 -0000 Received: (qmail 29318 invoked by uid 22791); 30 Sep 2010 10:19:05 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID 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; Thu, 30 Sep 2010 10:19:01 +0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/45781] [4.6 Regression] GCC incorrectly puts function in .text.unlikely 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: build X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.0 X-Bugzilla-Changed-Fields: Keywords Known to work 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: Thu, 30 Sep 2010 11:12: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: 2010-09/txt/msg03216.txt.bz2 Message-ID: <20100930111200.z-cseT-THZiSOVOYo8fSg-nOSHzdasOSB2onOCgRJ7s@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45781 Richard Guenther changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |build Known to work| |4.5.1 --- Comment #1 from Richard Guenther 2010-09-30 10:19:00 UTC --- The decision is reasonable (I suppose partial inlining will inline the if (!init) case) as the function is called exactly once then and thus should be optimized for size and put into a separate section. The question is thus, why does that break IA64 bootstrap? If IA64 doesn't support .text.unlikely it should define UNLIKELY_EXECUTED_TEXT_SECTION_NAME appropriately.