From 0b21dcf57accd9391c82cb42fad47d3855ae7ea5 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Sat, 16 Apr 1994 23:14:50 -0600 Subject: [PATCH] function.c (locate_and_pad_parm): For ARGS_GROW_DOWNWARD... * function.c (locate_and_pad_parm): For ARGS_GROW_DOWNWARD, Round sizetree for both upward and downward padding, nuke the (now unnecessary) call to pad_below for arg_size_ptr. From-SVN: r7056 --- gcc/function.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gcc/function.c b/gcc/function.c index 4f40d0b540a..73ace46e6c2 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -3936,7 +3936,7 @@ locate_and_pad_parm (passed_mode, type, in_regs, fndecl, offset_ptr->constant = - initial_offset_ptr->constant; offset_ptr->var = 0; } - if (where_pad == upward + if (where_pad != none && (TREE_CODE (sizetree) != INTEGER_CST || ((TREE_INT_CST_LOW (sizetree) * BITS_PER_UNIT) % PARM_BOUNDARY))) sizetree = round_up (sizetree, PARM_BOUNDARY / BITS_PER_UNIT); @@ -3956,9 +3956,6 @@ locate_and_pad_parm (passed_mode, type, in_regs, fndecl, arg_size_ptr->constant = (- initial_offset_ptr->constant - offset_ptr->constant); } -/* ADD_PARM_SIZE (*arg_size_ptr, sizetree); */ - if (where_pad == downward) - pad_below (arg_size_ptr, passed_mode, sizetree); #else /* !ARGS_GROW_DOWNWARD */ pad_to_arg_alignment (initial_offset_ptr, boundary); *offset_ptr = *initial_offset_ptr; -- 2.30.2