diff mbox

[4.5] Fix PR rtl-optimization/45353

Message ID 201008311352.23338.ebotcazou@adacore.com
State New
Headers show

Commit Message

Eric Botcazou Aug. 31, 2010, 11:52 a.m. UTC
This backports Jakub's patch to the 4.5 branch, fixing a bunch of failures in 
the testsuite on IA-64 when configured with RTL checking.

Tested on ia64-suse-linux, applied on the 4.5 branch.


2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>

	Backport from mainline
	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.
diff mbox

Patch

Index: sel-sched-ir.c
===================================================================
--- sel-sched-ir.c	(revision 163230)
+++ sel-sched-ir.c	(working copy)
@@ -4324,7 +4324,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;
     }