Commit cd8d4e24 by Maxim Kuvyrkov Committed by Maxim Kuvyrkov

re PR middle-end/26807 (FAIL: gcc.dg/torture/pr24626-1.c -O2 (test for excess errors))

2006-06-13  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>

	PR middle-end/26807
	* haifa-sched.c (check_cfg): Handle special case.

From-SVN: r114606
parent 5123ad09
2006-06-13 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
PR middle-end/26807
* haifa-sched.c (check_cfg): Handle special case.
2006-06-13 Eric Botcazou <ebotcazou@adacore.com>
PR debug/26754
......
......@@ -4673,8 +4673,13 @@ check_cfg (rtx head, rtx tail)
gcc_assert (EDGE_COUNT (bb->succs) == 1
&& BARRIER_P (NEXT_INSN (head)));
else if (any_condjump_p (head))
gcc_assert (EDGE_COUNT (bb->succs) > 1
&& !BARRIER_P (NEXT_INSN (head)));
gcc_assert (/* Usual case. */
(EDGE_COUNT (bb->succs) > 1
&& !BARRIER_P (NEXT_INSN (head)))
/* Or jump to the next instruction. */
|| (EDGE_COUNT (bb->succs) == 1
&& (BB_HEAD (EDGE_I (bb->succs, 0)->dest)
== JUMP_LABEL (head))));
}
if (BB_END (bb) == head)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment