(INITIAL_ELIMINATION_OFFSET): Properly compute offset between AP and
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Jul 1994 03:11:17 +0000 (03:11 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Jul 1994 03:11:17 +0000 (03:11 +0000)
SP when get_frame_size and current_function_pretend_args_size are not
a multiple of 16 bytes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7801 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/alpha/alpha.h

index f5b336d..e114735 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