* function.c (assign_parms): Include pretend alignment offset.
authorPaul Brook <paul@codesourcery.com>
Fri, 5 Mar 2004 16:44:33 +0000 (16:44 +0000)
committerPaul Brook <pbrook@gcc.gnu.org>
Fri, 5 Mar 2004 16:44:33 +0000 (16:44 +0000)
From-SVN: r78973

gcc/ChangeLog
gcc/function.c

index 6698fb8d95fb475f0dd355cb4b3b85ccf381d4a1..7e4af9331ecc816d0a83571a8eed63fbdd62b8f0 100644 (file)
@@ -1,3 +1,7 @@
+2004-03-05  Paul Brook  <paul@codesourcery.com>
+
+       * function.c (assign_parms): Include pretend alignment offset.
+
 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
        * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
index a42b806551689446d44c9f8d1193d5885224060d..b59707a0b7607bf620bb1fca9319124275f3fb09 100644 (file)
@@ -4591,13 +4591,9 @@ assign_parms (tree fndecl)
       locate_and_pad_parm (promoted_mode, passed_type, in_regs,
                           entry_parm ? partial : 0, fndecl,
                           &stack_args_size, &locate);
-      /* Adjust offsets to include pretend args, unless this is the
-         split arg.  */
-      if (pretend_bytes == 0)
-       {
-         locate.slot_offset.constant += extra_pretend_bytes;
-         locate.offset.constant += extra_pretend_bytes;
-       }
+      /* Adjust offsets to include the pretend args.  */
+      locate.slot_offset.constant += extra_pretend_bytes - pretend_bytes;
+      locate.offset.constant += extra_pretend_bytes - pretend_bytes;
 
       {
        rtx offset_rtx;