From: hp Date: Mon, 11 Feb 2019 09:03:51 +0000 (+0000) Subject: * function.c (assign_parm_setup_block): Use the stored X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=515d3add30816c93f435b11d9407ee63bb6098d1;p=thirdparty%2Fgcc.git * function.c (assign_parm_setup_block): Use the stored size, not the passed size, when allocating stack-space, also for a parameter with alignment larger than MAX_SUPPORTED_STACK_ALIGNMENT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268763 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9e938f753b0b..a4cc46a5fc8e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2019-02-11 Hans-Peter Nilsson + + * function.c (assign_parm_setup_block): Use the stored + size, not the passed size, when allocating stack-space, + also for a parameter with alignment larger than + MAX_SUPPORTED_STACK_ALIGNMENT. + 2019-02-11 Martin Liska PR ipa/89009 diff --git a/gcc/function.c b/gcc/function.c index 1525d8bc29a3..dc035707c208 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -2915,7 +2915,7 @@ assign_parm_setup_block (struct assign_parm_data_all *all, SET_DECL_ALIGN (parm, MAX (DECL_ALIGN (parm), BITS_PER_WORD)); if (DECL_ALIGN (parm) > MAX_SUPPORTED_STACK_ALIGNMENT) { - rtx allocsize = gen_int_mode (size, Pmode); + rtx allocsize = gen_int_mode (size_stored, Pmode); get_dynamic_stack_size (&allocsize, 0, DECL_ALIGN (parm), NULL); stack_parm = assign_stack_local (BLKmode, UINTVAL (allocsize), MAX_SUPPORTED_STACK_ALIGNMENT);