This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix a clash between temp_slot and add_frame_space free stack slot handling (PR middle-end/47893)
- From: Richard Henderson <rth at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 01 Mar 2011 16:32:25 +1000
- Subject: Re: [PATCH] Fix a clash between temp_slot and add_frame_space free stack slot handling (PR middle-end/47893)
- References: <20110225213121.GV30899@tyan-ft48-01.lab.bos.redhat.com>
On 02/26/2011 07:31 AM, Jakub Jelinek wrote:
> 2011-02-25 Bernd Schmidt <bernds@codesourcery.com>
> Jakub Jelinek <jakub@redhat.com>
>
> PR middle-end/47893
> * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
> (assign_stack_local_1): Change last argument type to int.
> * function.c (assign_stack_local_1): Replace reduce_alignment_ok
> argument with kind. If bit ASLK_RECORD_PAD is not set in it,
> don't record padding space into frame_space_list nor
> use those areas.
> (assign_stack_local): Adjust caller.
> (assign_stack_temp_for_type): Call assign_stack_local_1 instead
> of assign_stack_local, pass 0 as last argument.
> * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
> callers.
>
> * gcc.dg/pr47893.c: New test.
Ok.
r~