mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-25 19:26:10 +08:00
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
This commit is contained in:
parent
bf794e41ee
commit
89ad0f25dc
@ -1,3 +1,9 @@
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
9
gcc/testsuite/gcc.dg/pr45353.c
Normal file
9
gcc/testsuite/gcc.dg/pr45353.c
Normal file
@ -0,0 +1,9 @@
|
||||
/* PR rtl-optimization/45353 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O2 -fschedule-insns -fselective-scheduling" } */
|
||||
|
||||
void
|
||||
foo ()
|
||||
{
|
||||
__builtin_unreachable ();
|
||||
}
|
Loading…
Reference in New Issue
Block a user