Commit 89ad0f25 by Jakub Jelinek Committed by Jakub Jelinek

re PR rtl-optimization/45353 (ICE: RTL check: expected elt 3 type 'B', have '0'…

re PR rtl-optimization/45353 (ICE: RTL check: expected elt 3 type 'B', have '0' (rtx barrier) in sel_bb_head, at sel-sched-ir.c:4329 with -fselective-scheduling and __builtin_unreachable())

	PR rtl-optimization/45353
	* sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
	after bb_note is a BARRIER.

	* gcc.dg/pr45353.c: New test.

From-SVN: r163412
parent bf794e41
2010-08-20 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/45353
* sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
after bb_note is a BARRIER.
2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
* config/rs6000/darwin.h (LIB_SPEC): New. Provide save/restFP by
......
......@@ -4326,7 +4326,7 @@ sel_bb_head (basic_block bb)
note = bb_note (bb);
head = next_nonnote_insn (note);
if (head && BLOCK_FOR_INSN (head) != bb)
if (head && (BARRIER_P (head) || BLOCK_FOR_INSN (head) != bb))
head = NULL_RTX;
}
......
2010-08-20 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/45353
* gcc.dg/pr45353.c: New test.
2010-08-20 Nathan Sidwell <nathan@codesourcery.com>
* gcc.target/i386/volatile-2.c: New.
......
/* PR rtl-optimization/45353 */
/* { dg-do compile } */
/* { dg-options "-O2 -fschedule-insns -fselective-scheduling" } */
void
foo ()
{
__builtin_unreachable ();
}
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