OSDN Git Service

2009-04-17 Paolo Bonzini <bonzini@gnu.org>
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Apr 2009 12:21:31 +0000 (12:21 +0000)
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Apr 2009 12:21:31 +0000 (12:21 +0000)
* config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146257 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 767ca08..5aad48d 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 6a4ccb0..3a90cf1 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)))