aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2005-08-03 21:50:13 +0000
committerPaul Brook <pbrook@gcc.gnu.org>2005-08-03 21:50:13 +0000
commit5336645054c5bc4bf56215863b9d64bd24884f32 (patch)
tree39598d0b8646e6c91a213894c2277b402beda807 /gcc/function.c
parent0667b04051c18c137b5613d279fd2d25b4cbfcf1 (diff)
downloadgcc-5336645054c5bc4bf56215863b9d64bd24884f32.zip
gcc-5336645054c5bc4bf56215863b9d64bd24884f32.tar.gz
gcc-5336645054c5bc4bf56215863b9d64bd24884f32.tar.bz2
function.c (assign_parms): Round current_function_args_size to PARM_BOUNDARY, not STACK_BOUNDARY.
2005-08-03 Paul Brook <paul@codesourcery.com> * function.c (assign_parms): Round current_function_args_size to PARM_BOUNDARY, not STACK_BOUNDARY. From-SVN: r102713
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 56e342e..2b4fe1b 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -3007,9 +3007,8 @@ assign_parms (tree fndecl)
REG_PARM_STACK_SPACE (fndecl));
#endif
- current_function_args_size
- = ((current_function_args_size + STACK_BYTES - 1)
- / STACK_BYTES) * STACK_BYTES;
+ current_function_args_size = CEIL_ROUND (current_function_args_size,
+ PARM_BOUNDARY / BITS_PER_UNIT);
#ifdef ARGS_GROW_DOWNWARD
current_function_arg_offset_rtx