Fix REG_PARM_STACK_SPACE usage in expand_call
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 14 Dec 2013 08:06:22 +0000 (08:06 +0000)
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 14 Dec 2013 08:06:22 +0000 (08:06 +0000)
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

gcc/ChangeLog
gcc/calls.c

index e9ee35f..fdb84d1 100644 (file)
@@ -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.
index 2226e78..501474b 100644 (file)
@@ -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.  */