From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 66604 invoked by alias); 19 Aug 2019 22:20:38 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 66594 invoked by uid 89); 19 Aug 2019 22:20:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:788 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 ESMTP; Mon, 19 Aug 2019 22:20:36 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B61B1A38180; Mon, 19 Aug 2019 22:20:35 +0000 (UTC) Received: from localhost.localdomain (ovpn-112-5.rdu2.redhat.com [10.10.112.5]) by smtp.corp.redhat.com (Postfix) with ESMTP id F2C3F18FBE; Mon, 19 Aug 2019 22:20:34 +0000 (UTC) Subject: Re: [12/13] Make calls.c use function_arg_info internally To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com References: From: Jeff Law Openpgp: preference=signencrypt Message-ID: <68b69fbe-d7a3-aecd-90ae-62438dfb70c2@redhat.com> Date: Mon, 19 Aug 2019 22:49:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg01359.txt.bz2 On 8/19/19 9:23 AM, Richard Sandiford wrote: > This patch makes the two main calls.c argument-processing > routines track the state of the argument in a function_arg_info > instead of using separate mode variables. > > > 2019-08-19 Richard Sandiford > > gcc/ > * calls.c (emit_library_call_value_1): Merge arg and orig_arg > into a single function_arg_info, updating its fields when we > apply pass-by-reference and promotion semantics. Use the > function_arg_info to track the mode rather than keeping it in > a separate local variable. > (initialize_argument_information): Likewise. Base the final > arg_to_skip on this new function_arg_info rather than creating > a new one from scratch. > OK jeff