From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22828 invoked by alias); 22 Aug 2012 20:14:00 -0000 Received: (qmail 22775 invoked by uid 22791); 22 Aug 2012 20:13:52 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED 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; Wed, 22 Aug 2012 20:13:39 +0000 From: "steven at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/53695] [4.8 Regression] ICE: in dfs_enumerate_from, at cfganal.c:1221 with -O2 -ftracer and labels/gotos Date: Wed, 22 Aug 2012 20:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: steven at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: 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 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: 2012-08/txt/msg01562.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53695 --- Comment #7 from Steven Bosscher 2012-08-22 20:13:32 UTC --- Before tracer we have this CFG: ENTRY | V | 2(0) | | V | (a) | +-<-+ V / | | / / (a) 3(1)->-4(1)-->--5(1)-+ /\ | / +-----<------+ / | V(a) | 6(0) | EXIT and (BASIC_BLOCK(3)->flags & IRREDUCIBLE_LOOP) is true. The IRREDUCIBLE_LOOP flags appear to be out-of-date because the flag is not set on BASIC_BLOCK(4) but it's set on all edges out of it so that's good enough. Tracer goes to work on this and finds the following traces: Trace seed 4 [10000],4 [10000],3 [6667] forward 2 [6667],3 [6667],4 [10000] Duplicated 3 as 7 [6667] covered now 66.7 Trace seed 6 [3333] forward 6 [3333] covered now 100.0 The resulting flow graph was already shown in comment #6, but now with the basic block numbers before the CFG is cleaned up: ENTRY | V | 2(0) | | V | 7(0) | \ \ \ \ \ \ +-->--+ | +--<---+ | \ V / | | \ | / | +-3(1)-<-4(1)->-5(1)-+ (a) | (a) | |(a) | 6(0) | EXIT