From patchwork Tue Sep 11 15:47:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diego Novillo X-Patchwork-Id: 183142 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 793E82C0078 for ; Wed, 12 Sep 2012 01:47:20 +1000 (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=1347983241; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Received:Received:Date:From:To:Subject: Message-ID:MIME-Version:Content-Type:Content-Disposition: User-Agent:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=WXLw3Ss MWaofkMJgbXtvzm965lw=; b=c5+FaiVedROCtqUfwFUK7alI3sSvcuGUE+1RDQW sXYHiVLSLZ3oKGS2RCa3QafYyxxS9UekLls3bWyt6laaHobcih9exjCxdmQXuGL7 f1MZOWCQ5vRl3U7BZ8rQq4aUCC2yzkLKHcI69/4pusGZV0Nwv9hVBIcsWNblMKkW cfT4= 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:X-Google-DKIM-Signature:Received:Received:Received:Received:Received:Date:From:To:Subject:Message-ID:MIME-Version:Content-Type:Content-Disposition:User-Agent:X-Gm-Message-State:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=dQSlGHuM2PVBD4kw9Xulq7p76oMkmBfehXcKXIC79HHQYvsZh40m7I7OQUWQQQ bkiUdAPB+abSD56TJ9H9b66K/eyD/H5fDQ/JlFoNuSXayjtbxdvtU2uWv7lGeyDo o6zoKz1sB8Q7PJcmr/mDhaMlqx1tF0Uuy1tNqCPVmkT+k=; Received: (qmail 31275 invoked by alias); 11 Sep 2012 15:47:16 -0000 Received: (qmail 31267 invoked by uid 22791); 11 Sep 2012 15:47:15 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-gg0-f201.google.com (HELO mail-gg0-f201.google.com) (209.85.161.201) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 11 Sep 2012 15:47:02 +0000 Received: by ggnb1 with SMTP id b1so65241ggn.2 for ; Tue, 11 Sep 2012 08:47:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:organization:user-agent:x-gm-message-state; bh=1Kx8CbAQ1qVKbTz97oBY092lQNb+vrIibvHDJEgySII=; b=hg1kT1ZBDEnZ8PtsGmEqsy2VFusWyZGpdnVur/gpDs3mhK+gX2lbUxDcKnS8QB7mVQ L8cY1FW8VuPb+TsbgYBQm06twvBXfwOvnc9Un5TUUGyd9FMHe7svK7v+euJnvjO4paBJ sIMTWk71zIfuvMtmkrKRpEc+YHz8Ti8Kj8gXzwQBQqlH/b8hc0tlgx0m3oUgAPg1L7ZX gvqhug/pbNY5qkKcYKHaYz8hg/6jgfuJGqwwMmh73ZrEJhj2XD1omwKUCKh9hkOcaeBq WpZOIObfdCePymYwEm92NZwO4pQco1U53vpCN3dBbu++jjTdY5BMcyStdFKEshwOtLWL vZxQ== Received: by 10.236.157.234 with SMTP id o70mr10226642yhk.4.1347378421605; Tue, 11 Sep 2012 08:47:01 -0700 (PDT) Received: by 10.236.157.234 with SMTP id o70mr10226637yhk.4.1347378421552; Tue, 11 Sep 2012 08:47:01 -0700 (PDT) Received: from wpzn3.hot.corp.google.com (216-239-44-65.google.com [216.239.44.65]) by gmr-mx.google.com with ESMTPS id l23si4747429yhk.6.2012.09.11.08.47.01 (version=TLSv1/SSLv3 cipher=AES128-SHA); Tue, 11 Sep 2012 08:47:01 -0700 (PDT) Received: from torture.tor.corp.google.com (torture.tor.corp.google.com [172.29.41.4]) by wpzn3.hot.corp.google.com (Postfix) with ESMTP id 790E9100047 for ; Tue, 11 Sep 2012 08:47:01 -0700 (PDT) Received: by torture.tor.corp.google.com (Postfix, from userid 54752) id F2AABC0A47; Tue, 11 Sep 2012 11:47:00 -0400 (EDT) Date: Tue, 11 Sep 2012 11:47:00 -0400 From: Diego Novillo To: gcc-patches@gcc.gnu.org Subject: Fix var-tracking for window register targets Message-ID: <20120911154700.GA2285@google.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Gm-Message-State: ALoCoQkE11RoYJ0jXdIvT4cQeaQ/+S/Nr1sXbr337fF8QP/T6ht6AV982RW9B8HHwYft+Jz6hZ6K/p1K9RGkoUNLYhIpLCOyv9HzBFTtgzjiI0Klhp9WgucX4ynOvyKBrAsPR+FxPI0WaY5RUlDCAZrojQf3FHVmdl85AawTqPyFtNH4t+ms+ZfvjebWahTvmbB8jEAIY7BQ8j4knAT1lrn1Plqox53JBX9YCFO3eNyNPj4p0TgC/S0= 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 Caught on a sparc build. Testing on sparc. Will commit once it finishes. Diego. * var-tracking.c (vt_add_function_parameter): Adjust for VEC changes. diff --git a/gcc/var-tracking.c b/gcc/var-tracking.c index 8c9ec48..9f5bc12 100644 --- a/gcc/var-tracking.c +++ b/gcc/var-tracking.c @@ -9356,13 +9356,13 @@ vt_add_function_parameter (tree parm) && HARD_REGISTER_P (incoming) && OUTGOING_REGNO (REGNO (incoming)) != REGNO (incoming)) { - parm_reg_t *p - = VEC_safe_push (parm_reg_t, gc, windowed_parm_regs, NULL); - p->incoming = incoming; + parm_reg_t p; + p.incoming = incoming; incoming = gen_rtx_REG_offset (incoming, GET_MODE (incoming), OUTGOING_REGNO (REGNO (incoming)), 0); - p->outgoing = incoming; + p.outgoing = incoming; + VEC_safe_push (parm_reg_t, gc, windowed_parm_regs, p); } else if (MEM_P (incoming) && REG_P (XEXP (incoming, 0)) @@ -9371,11 +9371,11 @@ vt_add_function_parameter (tree parm) rtx reg = XEXP (incoming, 0); if (OUTGOING_REGNO (REGNO (reg)) != REGNO (reg)) { - parm_reg_t *p - = VEC_safe_push (parm_reg_t, gc, windowed_parm_regs, NULL); - p->incoming = reg; + parm_reg_t p; + p.incoming = reg; reg = gen_raw_REG (GET_MODE (reg), OUTGOING_REGNO (REGNO (reg))); - p->outgoing = reg; + p.outgoing = reg; + VEC_safe_push (parm_reg_t, gc, windowed_parm_regs, p); incoming = replace_equiv_address_nv (incoming, reg); } }