From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19039 invoked by alias); 27 Mar 2012 12:44:03 -0000 Received: (qmail 19027 invoked by uid 22791); 27 Mar 2012 12:44:01 -0000 X-SWARE-Spam-Status: No, hits=-2.9 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; Tue, 27 Mar 2012 12:43:49 +0000 From: "abel at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/51106] [4.5/4.6 Regression] ICE in move_insn, at haifa-sched.c:2314 Date: Tue, 27 Mar 2012 12:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: abel at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: Status CC Resolution Target Milestone 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 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-03/txt/msg02319.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51106 Andrey Belevantsev changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |rguenth at gcc dot gnu.org Resolution|FIXED | Target Milestone|4.5.4 |4.8.0 Known to fail| |4.8.0 --- Comment #13 from Andrey Belevantsev 2012-03-27 12:42:06 UTC --- It's failing not only on sh, but on x86-64 too, started with (no surprise here) r185564: 2012-03-20 Richard Guenther * tree-pass.h (pass_rtl_eh): Remove. Richard, the issue here was that when removing the wrong asm jump, we need also to fixup the cfg. This can be done by the purge_dead_edges call because as Jakub mentioned in comment #3 the basic block with the asm has two successor edges, one of them is fallthru. After your patch (probably because of the new call to cleanup_cfg) there is no more fallthru edge but a single edge. Which blows up purge_dead_edges called from delete_insn_and_edges. So probably purge_dead_edges should be fixed to expect not having a fallthru edge -- Jakub may have more context here.