(INITIAL_ELIMINATION_OFFSET): Properly compute offset between AP and SP when...
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 28 Jul 1994 03:11:17 +0000 (23:11 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 28 Jul 1994 03:11:17 +0000 (23:11 -0400)
(INITIAL_ELIMINATION_OFFSET): Properly compute offset between AP and
SP when get_frame_size and current_function_pretend_args_size are not
a multiple of 16 bytes.

From-SVN: r7801

gcc/config/alpha/alpha.h

index f5b336d70c6de22c654f6e5cb00ab851e6c76685..e114735d17435bf6dea959bdccd517a08ab92d28 100644 (file)
@@ -680,7 +680,9 @@ enum reg_class { NO_REGS, GENERAL_REGS, FLOAT_REGS, ALL_REGS,
   else if ((FROM) == ARG_POINTER_REGNUM)                               \
     (OFFSET) = (ALPHA_ROUND (current_function_outgoing_args_size)      \
                + alpha_sa_size ()                                      \
-               + ALPHA_ROUND (get_frame_size ()));                     \
+               + (ALPHA_ROUND (get_frame_size ()                       \
+                              + current_function_pretend_args_size)    \
+                  - current_function_pretend_args_size));              \
 }
 
 /* Define this if stack space is still allocated for a parameter passed