for gcc/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
PR debug/47620
PR debug/47630
* haifa-sched.c (fix_tick_ready): Don't queue boundary debug insns.
===================================================================
@@ -3929,6 +3929,15 @@ fix_tick_ready (rtx next)
if (!full_p)
break;
}
+
+ /* We can't queue debug insns, but we would try to during
+ init_ready_list when a debug insn is the very first. Arrange
+ for it to be added to the ready list instead. */
+ if (!tick && clock_var == -1 && DEBUG_INSN_P (next))
+ {
+ gcc_checking_assert (q_size == 0);
+ tick = -1;
+ }
}
else
tick = -1;