Commit 9d53e585 by Jason McMullan Committed by Richard Henderson

builtins.c (expand_builtin_apply): Don't defer pop during argument setup.

        * builtins.c (expand_builtin_apply): Don't defer pop during
        argument setup.

From-SVN: r35382
parent e079dcdb
2000-07-31 Jason McMullan <jmcmullan@linuxcare.com>
* builtins.c (expand_builtin_apply): Don't defer pop during
argument setup.
2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl> 2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
* calls.c (combine_pending_stack_adjustment_and_call): Only use * calls.c (combine_pending_stack_adjustment_and_call): Only use
......
...@@ -885,8 +885,11 @@ expand_builtin_apply (function, arguments, argsize) ...@@ -885,8 +885,11 @@ expand_builtin_apply (function, arguments, argsize)
/* Perform postincrements before actually calling the function. */ /* Perform postincrements before actually calling the function. */
emit_queue (); emit_queue ();
/* Push a new argument block and copy the arguments. */ /* Push a new argument block and copy the arguments. Do not allow
the (potential) memcpy call below to interfere with our stack
manipulations. */
do_pending_stack_adjust (); do_pending_stack_adjust ();
NO_DEFER_POP;
/* Save the stack with nonlocal if available */ /* Save the stack with nonlocal if available */
#ifdef HAVE_save_stack_nonlocal #ifdef HAVE_save_stack_nonlocal
...@@ -1026,6 +1029,8 @@ expand_builtin_apply (function, arguments, argsize) ...@@ -1026,6 +1029,8 @@ expand_builtin_apply (function, arguments, argsize)
#endif #endif
emit_stack_restore (SAVE_BLOCK, old_stack_level, NULL_RTX); emit_stack_restore (SAVE_BLOCK, old_stack_level, NULL_RTX);
OK_DEFER_POP;
/* Return the address of the result block. */ /* Return the address of the result block. */
return copy_addr_to_reg (XEXP (result, 0)); return copy_addr_to_reg (XEXP (result, 0));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment