From: Paolo Bonzini Date: Fri, 17 Apr 2009 12:21:31 +0000 (+0000) Subject: sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes. X-Git-Tag: releases/gcc-4.5.0~6477 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fabf2749fd98b5cbc7d3112bc74a4c7c5d24351d;p=thirdparty%2Fgcc.git sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes. 2009-04-17 Paolo Bonzini * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes. From-SVN: r146257 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 767ca08eb709..5aad48d23443 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2009-04-17 Paolo Bonzini + + * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes. + 2009-04-17 Uros Bizjak * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef. diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h index 6a4ccb0f0e64..3a90cf172fd6 100644 --- a/gcc/config/sh/sh.h +++ b/gcc/config/sh/sh.h @@ -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)))