From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2402 invoked by alias); 25 Nov 2010 12:41:20 -0000 Received: (qmail 2376 invoked by uid 22791); 25 Nov 2010 12:41:18 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_TM 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, 25 Nov 2010 12:41:14 +0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/46528] [4.6 Regression] profiledbootstrap failure X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: WAITING 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: Status 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: Thu, 25 Nov 2010 13:40: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-11/txt/msg03123.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46528 Richard Guenther changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |WAITING --- Comment #17 from Richard Guenther 2010-11-25 12:40:32 UTC --- Please try Index: gcc/profile.c =================================================================== --- gcc/profile.c (revision 167127) +++ gcc/profile.c (working copy) @@ -940,7 +943,8 @@ branch_prob (void) for (gsi = gsi_last_bb (bb); !gsi_end_p (gsi); gsi_prev (&gsi)) { last = gsi_stmt (gsi); - if (gimple_has_location (last)) + if (!is_gimple_debug (last) + && gimple_has_location (last)) break; } we do CFG manipulations based on debug stmts (verified with a later assert that triggers on -O2 -g -fprofile-use). It's of course unfortunate that we do this BB splitting at all when not doing coverage test.