aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGraham Stott <grahams@gcc.gnu.org>2001-07-26 05:45:25 +0000
committerGraham Stott <grahams@gcc.gnu.org>2001-07-26 05:45:25 +0000
commit2e824adbe44a946c91c1ff94815963fd2bec93be (patch)
treec5545082ea24020901e3917a8c88b1eba9b9a3a6 /gcc
parent66621f9e02f3a3dcfb3d8671aee9ed5126abbe1a (diff)
downloadgcc-2e824adbe44a946c91c1ff94815963fd2bec93be.zip
gcc-2e824adbe44a946c91c1ff94815963fd2bec93be.tar.gz
gcc-2e824adbe44a946c91c1ff94815963fd2bec93be.tar.bz2
function.c (locate_and_pad_parm): Also pad initial offset so that the total argument size also includes the padding.
* function.c (locate_and_pad_parm): Also pad initial offset so that the total argument size also includes the padding. From-SVN: r44379
Diffstat (limited to 'gcc')
-rw-r--r--gcc/function.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c
index c91da12..98894ba 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -5264,7 +5264,10 @@ locate_and_pad_parm (passed_mode, type, in_regs, fndecl,
/* However, BLKmode args passed in regs have their padding done elsewhere.
The stack slot must be able to hold the entire register. */
&& !(in_regs && passed_mode == BLKmode))
- pad_below (offset_ptr, passed_mode, sizetree);
+ {
+ pad_below (offset_ptr, passed_mode, sizetree);
+ pad_below (initial_offset_ptr, passed_mode, sizetree);
+ }
if (where_pad != none
&& (!host_integerp (sizetree, 1)