calls.c (expand_call): Take current_function_pretend_args_size into account when...

* calls.c (expand_call): Take current_function_pretend_args_size
        into account when setting argblock for sibcalls.

From-SVN: r58211
This commit is contained in:
J"orn Rennecke 2002-10-16 18:15:54 +00:00 committed by Daniel Jacobowitz
parent de333e72a2
commit 70ad811d93
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Wed Apr 24 23:45:37 2002 J"orn Rennecke <joern.rennecke@superh.com>
* calls.c (expand_call): Take current_function_pretend_args_size
into account when setting argblock for sibcalls.
Wed Oct 16 19:43:38 CEST 2002 Jan Hubicka <jh@suse.cz>
PR target/7396

View File

@ -2708,6 +2708,12 @@ expand_call (exp, target, ignore)
if (pass == 0)
{
argblock = virtual_incoming_args_rtx;
argblock
#ifdef STACK_GROWS_DOWNWARD
= plus_constant (argblock, current_function_pretend_args_size);
#else
= plus_constant (argblock, -current_function_pretend_args_size);
#endif
stored_args_map = sbitmap_alloc (args_size.constant);
sbitmap_zero (stored_args_map);
}