summaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2019-02-11 09:03:51 +0000
committerHans-Peter Nilsson <hp@gcc.gnu.org>2019-02-11 09:03:51 +0000
commit9fb117e8310076cd8e4803e35eaa6d3b09a45d79 (patch)
treeb55eb5f5807f9cf3a90c041ec5521af872e44489 /gcc/function.c
parent45272fd22f6f77463d46751acf1c7ceeeeec0689 (diff)
downloadgcc-9fb117e8310076cd8e4803e35eaa6d3b09a45d79.tar.gz
function.c (assign_parm_setup_block): Use the stored size...
* 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. From-SVN: r268763
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 1525d8bc29a..dc035707c20 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);