diff options
author | vries <vries@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-14 08:06:22 +0000 |
---|---|---|
committer | vries <vries@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-14 08:06:22 +0000 |
commit | 959e44a6b37b825d1d4a4586c9e79c0d60bdb1c3 (patch) | |
tree | 1619465d7952c0bf055b6aae2ea9cf6e8e7c74b2 | |
parent | dab3f1ae74a17d9200a7cb2b9e274a9097d8c08e (diff) | |
download | gcc-959e44a6b37b825d1d4a4586c9e79c0d60bdb1c3.tar.gz |
Fix REG_PARM_STACK_SPACE usage in expand_call
2013-12-14 Tom de Vries <tom@codesourcery.com>
* calls.c (expand_call): Fix REG_PARM_STACK_SPACE comparison.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205982 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/calls.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e9ee35f7c30..fdb84d1d423 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2013-12-14 Tom de Vries <tom@codesourcery.com> + + * calls.c (expand_call): Fix REG_PARM_STACK_SPACE comparison. + 2013-12-13 DJ Delorie <dj@redhat.com> * config/rl78/rl78-expand.md (one_cmplqi2): Make constant signed. diff --git a/gcc/calls.c b/gcc/calls.c index 2226e78a489..501474b8b6d 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -2595,7 +2595,7 @@ expand_call (tree exp, rtx target, int ignore) /* If outgoing reg parm stack space changes, we can not do sibcall. */ || (OUTGOING_REG_PARM_STACK_SPACE (funtype) != OUTGOING_REG_PARM_STACK_SPACE (TREE_TYPE (current_function_decl))) - || (reg_parm_stack_space != REG_PARM_STACK_SPACE (fndecl)) + || (reg_parm_stack_space != REG_PARM_STACK_SPACE (current_function_decl)) #endif /* Check whether the target is able to optimize the call into a sibcall. */ |