Patchwork [4.5] Fix PR rtl-optimization/45353

login
register
mail settings
Submitter Eric Botcazou
Date Aug. 31, 2010, 11:52 a.m.
Message ID <201008311352.23338.ebotcazou@adacore.com>
Download mbox | patch
Permalink /patch/63227/
State New
Headers show

Comments

Eric Botcazou - Aug. 31, 2010, 11:52 a.m.
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.

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;
     }