* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163412
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
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.
--- /dev/null
+/* PR rtl-optimization/45353 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -fschedule-insns -fselective-scheduling" } */
+
+void
+foo ()
+{
+ __builtin_unreachable ();
+}