From patchwork Tue Aug 31 11:52:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 63227 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id B144DB7138 for ; Tue, 31 Aug 2010 21:52:37 +1000 (EST) Received: (qmail 27860 invoked by alias); 31 Aug 2010 11:52:34 -0000 Received: (qmail 27849 invoked by uid 22791); 31 Aug 2010 11:52:33 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 31 Aug 2010 11:52:28 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 12B3ECB027C for ; Tue, 31 Aug 2010 13:52:26 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m-4UMkxT-bgU for ; Tue, 31 Aug 2010 13:52:26 +0200 (CEST) Received: from new-host-2.home (ADijon-552-1-123-239.w92-148.abo.wanadoo.fr [92.148.186.239]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id DF34DCB01D3 for ; Tue, 31 Aug 2010 13:52:25 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [4.5] Fix PR rtl-optimization/45353 Date: Tue, 31 Aug 2010 13:52:23 +0200 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Message-Id: <201008311352.23338.ebotcazou@adacore.com> Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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 Backport from mainline 2010-08-20 Jakub Jelinek PR rtl-optimization/45353 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn after bb_note is a BARRIER. 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; }