diff options
author | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-22 20:54:43 +0000 |
---|---|---|
committer | dj <dj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-22 20:54:43 +0000 |
commit | ad3b56f3283e5746a4d3c3f701b71c86821b87e7 (patch) | |
tree | 020d537f089bd04e1851dc977a293c0cbadecd4d /gcc/calls.c | |
parent | aa71376de52933bc3955f7b24b6173c366fcea1e (diff) | |
download | gcc-ad3b56f3283e5746a4d3c3f701b71c86821b87e7.tar.gz |
* calls.c (expand_call): If the arg block is going to grow
downward, we need argblock to point to the top of the block,
not the bottom.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67099 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/calls.c')
-rw-r--r-- | gcc/calls.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/calls.c b/gcc/calls.c index 5b4fbc9b94f..a3f2de0c880 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -2828,7 +2828,12 @@ expand_call (exp, target, ignore) if (needed == 0) argblock = virtual_outgoing_args_rtx; else - argblock = push_block (GEN_INT (needed), 0, 0); + { + argblock = push_block (GEN_INT (needed), 0, 0); +#ifdef ARGS_GROW_DOWNWARD + argblock = plus_constant (argblock, needed); +#endif + } /* We only really need to call `copy_to_reg' in the case where push insns are going to be used to pass ARGBLOCK |