From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18095 invoked by alias); 18 Jan 2011 01:46:16 -0000 Received: (qmail 18085 invoked by uid 22791); 18 Jan 2011 01:46:15 -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, 18 Jan 2011 01:46:11 +0000 From: "dj at redhat dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/46878] V850 ICE in in maybe_add_or_update_dep_1, at sched-deps.c:854 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: blocker X-Bugzilla-Who: dj at redhat dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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 Date: Tue, 18 Jan 2011 08:15: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: 2011-01/txt/msg01743.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46878 --- Comment #5 from DJ Delorie 2011-01-18 01:46:00 UTC --- Created attachment 23014 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23014 alternate patch Alternate patch. The v850.md patch tests frame_related, which is set for REGS only to indicate that the value is a pointer, which "fixed" this bug only by coincidence. I think what's happening is that the v850 backend is generating a BB that starts with a label, so fixup_sched_groups uses prev_nonnote_nondebug_insn() and finds the label. However, the functions it calls expects only an INSN. This patch adds a check for an INSN, to avoid adding deps on labels.