From patchwork Wed Nov 26 02:50:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Makarov X-Patchwork-Id: 414968 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id F1DEA140182 for ; Wed, 26 Nov 2014 13:50:56 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=jbBAuo3jakFlyw1myx/6dtJTS0Y8yeVuYY4ByH5iS0xawt bpD1cBGiuIrb7GcsEBwIlOPWxG5Sv2hBNjU+KBuBl9O4y9i78QaU9ZZb3u7Wzken kEM3Fd25UMmApFtway8rQagbcQnmNVgjVXNebMZkBGX0xa8hgEzYWGImCMqVE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=YnnvPL2jTCHF/8K4fppCLN3K1gU=; b=rINTEpCNq0yOWFTxWEiJ fjN9WiZLUx6zeVc8mktMutTyL38IQIaxMSCHgoq4m/vQOP2ZJZGPjI5aQUAcJZnK lYjnu3+n1+gsHE68HyrgvYaleDSkXyK5RwcgO5Vxy8mxD7OxHiJvApi3BugeDweb XBJUKqrZPDX8938GJijrvyI= Received: (qmail 11127 invoked by alias); 26 Nov 2014 02:50:49 -0000 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 Received: (qmail 11117 invoked by uid 89); 26 Nov 2014 02:50:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 26 Nov 2014 02:50:48 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sAQ2okEk021295 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 25 Nov 2014 21:50:46 -0500 Received: from VMBP.local (vpn-53-22.rdu2.redhat.com [10.10.53.22]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sAQ2oj2r001060 for ; Tue, 25 Nov 2014 21:50:46 -0500 Message-ID: <54754005.6010400@redhat.com> Date: Tue, 25 Nov 2014 21:50:45 -0500 From: Vladimir Makarov User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: GCC Patches Subject: path fixing PPC bootstrap X-IsSubscribed: yes Mike Meissner pointed me out that my last patch broke PPC bootstrap. I submitted a quick fix for it and now I am sending the path after bootstrap on ppc is done successfully. Sorry for the inconvinience. 2014-11-25 Vladimir Makarov * ira-lives.c (process_bb_node_lives): Make code with conditional REAL_PIC_OFFSET_TABLE_REGNUM. Index: ira-lives.c =================================================================== --- ira-lives.c (revision 218062) +++ ira-lives.c (working copy) @@ -1123,10 +1123,9 @@ process_bb_node_lives (ira_loop_tree_nod pessimistic, but it probably doesn't matter much in practice. */ FOR_BB_INSNS_REVERSE (bb, insn) { - int regno; ira_allocno_t a; df_ref def, use; - bool call_p, clear_pic_use_conflict_p; + bool call_p; if (!NONDEBUG_INSN_P (insn)) continue; @@ -1137,7 +1136,9 @@ process_bb_node_lives (ira_loop_tree_nod curr_point); call_p = CALL_P (insn); - clear_pic_use_conflict_p = false; +#ifdef REAL_PIC_OFFSET_TABLE_REGNUM + int regno; + bool clear_pic_use_conflict_p = false; /* Processing insn usage in call insn can create conflict with pic pseudo and pic hard reg and that is wrong. Check this situation and fix it at the end of the insn @@ -1150,6 +1151,7 @@ process_bb_node_lives (ira_loop_tree_nod && ! TEST_HARD_REG_BIT (OBJECT_CONFLICT_HARD_REGS (ALLOCNO_OBJECT (a, 0)), REAL_PIC_OFFSET_TABLE_REGNUM)); +#endif /* Mark each defined value as live. We need to do this for unused values because they still conflict with quantities @@ -1302,6 +1304,7 @@ process_bb_node_lives (ira_loop_tree_nod } } +#ifdef REAL_PIC_OFFSET_TABLE_REGNUM if (clear_pic_use_conflict_p) { regno = REGNO (pic_offset_table_rtx); @@ -1312,7 +1315,7 @@ process_bb_node_lives (ira_loop_tree_nod (ALLOCNO_OBJECT (a, 0)), REAL_PIC_OFFSET_TABLE_REGNUM); } - +#endif curr_point++; }