This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/46878] V850 ICE in in maybe_add_or_update_dep_1, at sched-deps.c:854
- From: "dj at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 18 Jan 2011 01:46:10 +0000
- Subject: [Bug target/46878] V850 ICE in in maybe_add_or_update_dep_1, at sched-deps.c:854
- Auto-submitted: auto-generated
- References: <bug-46878-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46878
--- Comment #5 from DJ Delorie <dj at redhat dot com> 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.