From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9056 invoked by alias); 23 Aug 2012 09:44:42 -0000 Received: (qmail 8980 invoked by uid 22791); 23 Aug 2012 09:44:41 -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; Thu, 23 Aug 2012 09:44:18 +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: Thu, 23 Aug 2012 09:44: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/msg01600.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53695 --- Comment #19 from Steven Bosscher 2012-08-23 09:44:18 UTC --- FWIW, applying the transformation tracer performs on the test case by hand: void foo (const void * * p) { void *labs[] = { &&l1, &&l2, &&l3 }; void *gotovar; long unsigned int p0; long unsigned int t7; long unsigned int t13; gotovar = p; p0 = (long unsigned int) gotovar; t13 = p0 + 8; p = (const void **) t13; goto bb5; l1: gotovar = p; p0 = (long unsigned int) gotovar; t7 = p0 + 8; p = (const void **) t7; goto bb5; bb5: goto *gotovar; l2: gotovar = p; goto bb5; l3: return; } This compiles without problem. Gives: Disambiguating loop 1 with multiple latches Merged latch edges of loop 1 ;; 2 loops found ;; ;; Loop 0 ;; header 0, latch 1 ;; depth 0, outer -1 ;; nodes: 0 1 2 3 4 7 5 6 ;; ;; Loop 1 ;; header 7, latch 4 ;; depth 1, outer 0 ;; nodes: 7 4 5 3 ;; 2 succs { 7 } ;; 3 succs { 4 } ;; 4 succs { 7 } ;; 7 succs { 3 5 6 } ;; 5 succs { 4 } ;; 6 succs { 1 }