From patchwork Thu Feb 23 21:50:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Makarov X-Patchwork-Id: 142711 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 79F62B6FA5 for ; Fri, 24 Feb 2012 08:50:40 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1330638642; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=nyx8sUB 8tqjqANrFU+aexTjgv0Y=; b=W9bK4UpPQzhthFUkhPIAj1/ukxgGEdX3kYK8QKJ HuN2Yh+hn2ZCz2Hwa5/42FE04rAZstnE5f5WVUC66xqcw8bUPrG/gXLMsDgx3/Qq 1QdCXh4V4q8Zh/FczA5Vmq/MfdJGFVFfQNYO/p8l87cgFsKO8jT7YEakyNB1FVwC fU0c= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=HTL16gmshqYheA7rCJW65NJ9LzpSwKFncO/ZKjjVdCfL6WlgViL+UVg7GFCYaf u/NR7ocNGG3TC6luHbHADYgE6uxPspsGufUAyHaV421Qa9iEyatQ7pbb/405O38+ IMddaxMcNiafQDx8GyZvq7Y04agU/PtHko6OvzItNeHFk=; Received: (qmail 18748 invoked by alias); 23 Feb 2012 21:50:37 -0000 Received: (qmail 18737 invoked by uid 22791); 23 Feb 2012 21:50:36 -0000 X-SWARE-Spam-Status: No, hits=-6.5 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Feb 2012 21:50:15 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q1NLoEem018623 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 23 Feb 2012 16:50:14 -0500 Received: from toll.yyz.redhat.com (unused [10.15.16.165] (may be forged)) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q1NLoDw3011532 for ; Thu, 23 Feb 2012 16:50:14 -0500 Message-ID: <4F46B495.6030609@redhat.com> Date: Thu, 23 Feb 2012 16:50:13 -0500 From: Vladimir Makarov User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16 MIME-Version: 1.0 To: gcc-patches Subject: [lra] a path to fix GCC crash on s390 X-IsSubscribed: yes 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 The following patch fixes a compiler crash on s390 during the bootstrap. Unfortunately it is not enough to fix the current s390 bootstrap failure. The patch was successfully bootstrapped on x86/x86-64. Committed as rev. 184524. 2012-02-23 Vladimir Makarov * lra-constraints.c (inherit_in_ebb): Don't do inheritance from output of a jump. Index: lra-constraints.c =================================================================== --- lra-constraints.c (revision 184510) +++ lra-constraints.c (working copy) @@ -4363,8 +4363,9 @@ inherit_in_ebb (rtx head, rtx tail) { reloads_num++; /* 'original_pseudo <- reload_pseudo'. */ - if (inherit_reload_reg (true, false, dst_regno, cl, - curr_insn, next_usage_insns)) + if (! JUMP_P (curr_insn) + && inherit_reload_reg (true, false, dst_regno, cl, + curr_insn, next_usage_insns)) change_p = true; /* Invalidate. */ usage_insns[dst_regno].check = 0; @@ -4425,9 +4426,11 @@ inherit_in_ebb (rtx head, rtx tail) /* Invalidate. */ usage_insns[dst_regno].check = 0; } - for (i = 0; i < to_inherit_num; i++) - if (inherit_reload_reg (true, false, to_inherit[i].regno, ALL_REGS, - curr_insn, to_inherit[i].insns)) + if (! JUMP_P (curr_insn)) + for (i = 0; i < to_inherit_num; i++) + if (inherit_reload_reg (true, false, to_inherit[i].regno, + ALL_REGS, curr_insn, + to_inherit[i].insns)) change_p = true; if (CALL_P (curr_insn)) calls_num++;