Commit f79a65c0 by Richard Kenner Committed by Richard Kenner

calls.c (emit_call_1): If ECF_SP_DEPRESSED, pretend have adjusted for rounded_stack_size.

	* calls.c (emit_call_1): If ECF_SP_DEPRESSED, pretend have adjusted
	for rounded_stack_size.

From-SVN: r48049
parent b0287a90
Sat Dec 15 17:53:03 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* calls.c (emit_call_1): If ECF_SP_DEPRESSED, pretend have adjusted
for rounded_stack_size.
2001-12-15 Joseph S. Myers <jsm28@cam.ac.uk> 2001-12-15 Joseph S. Myers <jsm28@cam.ac.uk>
* c-typeck.c, config/i386/i386.h, config/mcore/mcore.h, * c-typeck.c, config/i386/i386.h, config/mcore/mcore.h,
......
...@@ -646,9 +646,12 @@ emit_call_1 (funexp, fndecl, funtype, stack_size, rounded_stack_size, ...@@ -646,9 +646,12 @@ emit_call_1 (funexp, fndecl, funtype, stack_size, rounded_stack_size,
If returning from the subroutine does pop the args, indicate that the If returning from the subroutine does pop the args, indicate that the
stack pointer will be changed. */ stack pointer will be changed. */
if (rounded_stack_size != 0 && ! (ecf_flags & ECF_SP_DEPRESSED)) if (rounded_stack_size != 0)
{ {
if (flag_defer_pop && inhibit_defer_pop == 0 if (ecf_flags & ECF_SP_DEPRESSED)
/* Just pretend we did the pop. */
stack_pointer_delta -= rounded_stack_size;
else if (flag_defer_pop && inhibit_defer_pop == 0
&& ! (ecf_flags & (ECF_CONST | ECF_PURE))) && ! (ecf_flags & (ECF_CONST | ECF_PURE)))
pending_stack_adjust += rounded_stack_size; pending_stack_adjust += rounded_stack_size;
else else
......
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