]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
authorPaolo Bonzini <bonzini@gnu.org>
Fri, 17 Apr 2009 12:21:31 +0000 (12:21 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Fri, 17 Apr 2009 12:21:31 +0000 (12:21 +0000)
2009-04-17  Paolo Bonzini  <bonzini@gnu.org>

* config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.

From-SVN: r146257

gcc/ChangeLog
gcc/config/sh/sh.h

index 767ca08eb709b7afd236d90a26f053b700cef822..5aad48d23443d730257a065c5154bec7ea293a16 100644 (file)
@@ -1,3 +1,7 @@
+2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
+
+       * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
+
 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
 
        * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
index 6a4ccb0f0e64f80ac44a0174e329ce396c1461af..3a90cf172fd6c40eba86cbc5007ac5d1b8675f28 100644 (file)
@@ -1743,7 +1743,7 @@ extern enum reg_class regno_reg_class[FIRST_PSEUDO_REGISTER];
                 || TREE_CODE (VALTYPE) == BOOLEAN_TYPE                 \
                 || TREE_CODE (VALTYPE) == REAL_TYPE                    \
                 || TREE_CODE (VALTYPE) == OFFSET_TYPE))                \
-             && sh_promote_prototypes (VALTYPE)                                \
+             && sh_promote_prototypes (FUNC)                           \
            ? (TARGET_SHMEDIA64 ? DImode : SImode) : TYPE_MODE (VALTYPE)), \
           BASE_RETURN_VALUE_REG (TYPE_MODE (VALTYPE)))