]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix REG_PARM_STACK_SPACE usage in expand_call
authorTom de Vries <tom@codesourcery.com>
Sat, 14 Dec 2013 08:06:22 +0000 (08:06 +0000)
committerTom de Vries <vries@gcc.gnu.org>
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.

From-SVN: r205982

gcc/ChangeLog
gcc/calls.c

index e9ee35f7c30b8071e86266f0263a8d7218d2d6e7..fdb84d1d42344a51447678c102aa520badb00e80 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 2226e78a48945c9296571bc5479b043f72ba4dbc..501474b8b6d891027c30029ec9a378f1977812e2 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.  */