(alpha_builtin_saveregs): Refine last change to work for both stdarg
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Apr 1995 02:48:27 +0000 (02:48 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Apr 1995 02:48:27 +0000 (02:48 +0000)
and varargs.

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

gcc/config/alpha/alpha.c

index 3fe36ff..727e0a9 100644 (file)
@@ -1144,7 +1144,7 @@ alpha_builtin_saveregs (arglist)
      order to account for the integer arg registers which are counted in
      argsize above, but which are not actually stored on the stack.  */
 
-  addr = (current_function_args_info <= 5
+  addr = (current_function_args_info <= 5 + stdarg
          ? plus_constant (virtual_incoming_args_rtx, 6 * UNITS_PER_WORD)
          : plus_constant (virtual_incoming_args_rtx, - (6 * UNITS_PER_WORD)));