From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21095 invoked by alias); 19 Aug 2019 20:16:03 -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 21084 invoked by uid 89); 19 Aug 2019 20:16:02 -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= 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 20:16:01 +0000 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3B9323DE02; Mon, 19 Aug 2019 20:16:00 +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 34A281F8; Mon, 19 Aug 2019 20:15:59 +0000 (UTC) Subject: Re: [04/13] Use function_arg_info for TARGET_PASS_BY_REFERENCE To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com References: From: Jeff Law Openpgp: preference=signencrypt Message-ID: <5d83728c-b708-7b40-889e-9749e702f650@redhat.com> Date: Mon, 19 Aug 2019 20:43: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: 8bit X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg01347.txt.bz2 On 8/19/19 9:15 AM, Richard Sandiford wrote: > Use function_arg_info for TARGET_PASS_BY_REFERENCE. > > The hook is passed the unpromoted type mode instead of the promoted mode. > > > 2019-08-19 Richard Sandiford > > gcc/ > * target.def (pass_by_reference): Take a function_arg_info instead > of a mode, type and named flag. > * doc/tm.texi: Regenerate. > * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update > accordingly. > (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare. > * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a > function_arg_info instead of a mode, type and named flag. > (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function. > * calls.h (pass_by_reference): Take a function_arg_info instead of a > mode, type and named flag. > * calls.c (pass_by_reference): Likewise. > (pass_va_arg_by_reference): Update call accordingly. > (initialize_argument_information): Likewise. > (emit_library_call_value_1): Likewise. > * function.c (assign_parm_find_data_types): Likewise. > * var-tracking.c (prepare_call_arguments): Likewise. > * stor-layout.c: Include calls.h. > (compute_record_mode): Update call to targetm.calls.pass_by_reference. > * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a > function_arg_info instead of a mode, type and named flag. > * config/alpha/alpha.c (alpha_pass_by_reference): Likewise. > * config/arc/arc.c (arc_pass_by_reference): Likewise. > * config/arm/arm.c (arm_pass_by_reference): Likewise. > * config/bfin/bfin.c (bfin_pass_by_reference): Likewise. > * config/c6x/c6x.c (c6x_pass_by_reference): Likewise. > (c6x_call_saved_register_used): Update call to pass_by_reference. > * config/cris/cris.c (cris_pass_by_reference): Take a > function_arg_info instead of a mode, type and named flag. > * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a > function_arg_info instead of a mode, type and named flag. > (epiphany_arg_partial_bytes): Update call accordingly. > * config/ft32/ft32.c (ft32_pass_by_reference): Take a > function_arg_info instead of a mode, type and named flag. > (ft32_arg_partial_bytes): Update call accordingly. > * config/i386/i386.c (ix86_pass_by_reference): Take a > function_arg_info instead of a mode, type and named flag. > * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise. > * config/m32c/m32c.c (m32c_pass_by_reference): Likewise. > * config/m32r/m32r.c (m32r_pass_by_reference): Likewise. > (m32r_return_in_memory): Update call accordingly. > * config/mips/mips.c (mips_pass_by_reference): Take a > function_arg_info instead of a mode, type and named flag. > * config/mmix/mmix.c (mmix_pass_by_reference): Likewise. > * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise. > * config/moxie/moxie.c (moxie_pass_by_reference): Likewise. > (moxie_arg_partial_bytes): Update call accordingly. > * config/msp430/msp430.c (msp430_pass_by_reference): Take a > function_arg_info instead of a mode, type and named flag. > * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise. > * config/or1k/or1k.c (or1k_pass_by_reference): Likewise. > * config/pa/pa.c (pa_pass_by_reference): Likewise. > * config/riscv/riscv.c (riscv_pass_by_reference): Likewise. > (riscv_return_in_memory): Update call accordingly. > * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a > function_arg_info instead of a mode, type and named flag. > * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise. > (rs6000_parm_needs_stack): Update call to pass_by_reference. > * config/s390/s390.c (s390_pass_by_reference): Take a > function_arg_info instead of a mode, type and named flag. > (s390_call_saved_register_used): Update call accordingly. > * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info > instead of a mode, type and named flag. > * config/sparc/sparc.c (sparc_pass_by_reference): Likewise. > * config/spu/spu.c (spu_pass_by_reference): Likewise. > * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise. > * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise. > * config/v850/v850.c (v850_pass_by_reference): Likewise. > * config/visium/visium.c (visium_pass_by_reference): Likewise. > > gcc/ada/ > * gcc-interface/misc.c (default_pass_by_ref): Update call to > pass_by_reference. OK jeff