function.c (locate_and_pad_parm): Also pad initial offset so that the total argument...
authorGraham Stott <grahams@gcc.gnu.org>
Thu, 26 Jul 2001 05:45:25 +0000 (05:45 +0000)
committerGraham Stott <grahams@gcc.gnu.org>
Thu, 26 Jul 2001 05:45:25 +0000 (05:45 +0000)
        * function.c (locate_and_pad_parm): Also pad initial offset
        so that the total argument size also includes the padding.

From-SVN: r44379

gcc/function.c

index c91da12a80b19cfa82faac7fc0ac28c74967a4c3..98894bad12f6f0b25c8da27db4449455358086a9 100644 (file)
@@ -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)