Commit d892f288 by DJ Delorie Committed by DJ Delorie

calls.c (expand_call): If the arg block is going to grow downward...

* 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.

From-SVN: r67099
parent f59700f9
2003-05-22 DJ Delorie <dj@redhat.com>
* 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.
2003-05-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> 2003-05-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* c-decl.c (duplicate_decls): Test DECL for ERROR_MARK. * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
......
...@@ -2828,7 +2828,12 @@ expand_call (exp, target, ignore) ...@@ -2828,7 +2828,12 @@ expand_call (exp, target, ignore)
if (needed == 0) if (needed == 0)
argblock = virtual_outgoing_args_rtx; argblock = virtual_outgoing_args_rtx;
else 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 /* We only really need to call `copy_to_reg' in the case
where push insns are going to be used to pass ARGBLOCK where push insns are going to be used to pass ARGBLOCK
......
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