This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/52287] [4.7 regression] ICE in ready_remove_first, at haifa-sched.c:1927
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 23 Feb 2012 15:52:23 +0000
- Subject: [Bug bootstrap/52287] [4.7 regression] ICE in ready_remove_first, at haifa-sched.c:1927
- Auto-submitted: auto-generated
- References: <bug-52287-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52287
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-23 15:52:23 UTC ---
I don't think INSN_UID is right for that, I think you want to preserve the
original order of debug insns in that case, and INSN_UID can jump up and down.
So what about
if (MAY_HAVE_DEBUG_INSNS)
{
/* Schedule debug insns as early as possible. */
if (DEBUG_INSN (tmp))
{
if (DEBUG_INSN (tmp2))
return INSN_LUID (tmp) - INSN_LUID (tmp2);
return -1;
}
else if (DEBUG_INSN (tmp2))
return 1;
}
?