sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.

2009-04-17  Paolo Bonzini  <bonzini@gnu.org>

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

From-SVN: r146257
This commit is contained in:
Paolo Bonzini 2009-04-17 12:21:31 +00:00 committed by Paolo Bonzini
parent b20de9b936
commit fabf2749fd
2 changed files with 5 additions and 1 deletions

View 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.

View 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)))