diff options
author | drow <drow@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-02 18:18:37 +0000 |
---|---|---|
committer | drow <drow@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-05-02 18:18:37 +0000 |
commit | 99b442ff01f2d9ae7b66fff9516be78f684fc42f (patch) | |
tree | fb2abd6911b608b6f622fb9e5a9ac465b88f1745 /gcc/calls.c | |
parent | ed19cf090139ce06860694ac9dc04a47a28f7423 (diff) | |
download | gcc-99b442ff01f2d9ae7b66fff9516be78f684fc42f.tar.gz |
* calls.c (expand_call): Handle current_function_pretend_args_size
when checking for sibcalls.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99113 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/calls.c')
-rw-r--r-- | gcc/calls.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/calls.c b/gcc/calls.c index df9c734fc78..27398320220 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -2197,8 +2197,11 @@ expand_call (tree exp, rtx target, int ignore) the argument areas are shared. */ || (fndecl && decl_function_context (fndecl) == current_function_decl) /* If this function requires more stack slots than the current - function, we cannot change it into a sibling call. */ - || args_size.constant > current_function_args_size + function, we cannot change it into a sibling call. + current_function_pretend_args_size is not part of the + stack allocated by our caller. */ + || args_size.constant > (current_function_args_size + - current_function_pretend_args_size) /* If the callee pops its own arguments, then it must pop exactly the same number of arguments as the current function. */ || (RETURN_POPS_ARGS (fndecl, funtype, args_size.constant) |