summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/calls.c2
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. */