public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [4.5] Fix PR rtl-optimization/45353
@ 2010-08-31 11:56 Eric Botcazou
  0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2010-08-31 11:56 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 465 bytes --]

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.


-- 
Eric Botcazou

[-- Attachment #2: p.diff --]
[-- Type: text/x-diff, Size: 428 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-31 11:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-31 11:56 [4.5] Fix PR rtl-optimization/45353 Eric Botcazou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).