From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 121853 invoked by alias); 6 Dec 2017 03:15:48 -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 121612 invoked by uid 89); 6 Dec 2017 03:15:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=do_reload, 043 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; Wed, 06 Dec 2017 03:15:14 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8D2705D9E2; Wed, 6 Dec 2017 03:15:08 +0000 (UTC) Received: from localhost.localdomain (ovpn-112-2.rdu2.redhat.com [10.10.112.2]) by smtp.corp.redhat.com (Postfix) with ESMTP id ADE0668D32; Wed, 6 Dec 2017 03:15:07 +0000 (UTC) Subject: Re: [043/nnn] poly_int: frame allocations To: gcc-patches@gcc.gnu.org, richard.sandiford@linaro.org References: <871sltvm7r.fsf@linaro.org> <87po9dn5os.fsf@linaro.org> From: Jeff Law Message-ID: <4b31d393-0df0-88ef-ba0f-261752b5ca42@redhat.com> Date: Wed, 06 Dec 2017 03:15:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <87po9dn5os.fsf@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2017-12/txt/msg00293.txt.bz2 On 10/23/2017 11:18 AM, Richard Sandiford wrote: > This patch converts the frame allocation code (mostly in function.c) > to use poly_int64 rather than HOST_WIDE_INT for frame offsets and > sizes. > > > 2017-10-23 Richard Sandiford > Alan Hayward > David Sherwood > > gcc/ > * function.h (frame_space): Change start and length from HOST_WIDE_INT > to poly_int64. > (get_frame_size): Return the size as a poly_int64 rather than a > HOST_WIDE_INT. > (frame_offset_overflow): Take the offset as a poly_int64 rather > than a HOST_WIDE_INT. > (assign_stack_local_1, assign_stack_local, assign_stack_temp_for_type) > (assign_stack_temp): Likewise for the size. > * function.c (get_frame_size): Return a poly_int64 rather than > a HOST_WIDE_INT. > (frame_offset_overflow): Take the offset as a poly_int64 rather > than a HOST_WIDE_INT. > (try_fit_stack_local): Take the start, length and size as poly_int64s > rather than HOST_WIDE_INTs. Return the offset as a poly_int64_pod > rather than a HOST_WIDE_INT. > (add_frame_space): Take the start and end as poly_int64s rather than > HOST_WIDE_INTs. > (assign_stack_local_1, assign_stack_local, assign_stack_temp_for_type) > (assign_stack_temp): Likewise for the size. > (temp_slot): Change size, base_offset and full_size from HOST_WIDE_INT > to poly_int64. > (find_temp_slot_from_address): Handle polynomial offsets. > (combine_temp_slots): Likewise. > * emit-rtl.h (rtl_data::x_frame_offset): Change from HOST_WIDE_INT > to poly_int64. > * cfgexpand.c (alloc_stack_frame_space): Return the offset as a > poly_int64 rather than a HOST_WIDE_INT. > (expand_one_stack_var_at): Take the offset as a poly_int64 rather > than a HOST_WIDE_INT. > (expand_stack_vars, expand_one_stack_var_1, expand_used_vars): Handle > polynomial frame offsets. > * config/m32r/m32r-protos.h (m32r_compute_frame_size): Take the size > as a poly_int64 rather than an int. > * config/m32r/m32r.c (m32r_compute_frame_size): Likewise. > * config/v850/v850-protos.h (compute_frame_size): Likewise. > * config/v850/v850.c (compute_frame_size): Likewise. > * config/xtensa/xtensa-protos.h (compute_frame_size): Likewise. > * config/xtensa/xtensa.c (compute_frame_size): Likewise. > * config/pa/pa-protos.h (pa_compute_frame_size): Likewise. > * config/pa/pa.c (pa_compute_frame_size): Likewise. > * explow.h (get_dynamic_stack_base): Take the offset as a poly_int64 > rather than a HOST_WIDE_INT. > * explow.c (get_dynamic_stack_base): Likewise. > * final.c (final_start_function): Use the constant lower bound > of the frame size for -Wframe-larger-than. > * ira.c (do_reload): Adjust for new get_frame_size return type. > * lra.c (lra): Likewise. > * reload1.c (reload): Likewise. > * config/avr/avr.c (avr_asm_function_end_prologue): Likewise. > * config/pa/pa.h (EXIT_IGNORE_STACK): Likewise. > * rtlanal.c (get_initial_register_offset): Return the offset as > a poly_int64 rather than a HOST_WIDE_INT. > OK Jeff