sh.c (sh_promote_function_mode): Use default_promote_function_mode if !sh_promote_prototypes.

2010-10-29  Paolo Bonzini  <bonzini@gnu.org>

	* config/sh/sh.c (sh_promote_function_mode): Use
	default_promote_function_mode if !sh_promote_prototypes.

From-SVN: r166057
This commit is contained in:
Paolo Bonzini 2010-10-29 06:48:39 +00:00 committed by Paolo Bonzini
parent 94e71ec0ea
commit 8a575d5a19
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-10-29 Paolo Bonzini <bonzini@gnu.org>
* config/sh/sh.c (sh_promote_function_mode): Use
default_promote_function_mode if !sh_promote_prototypes.
2010-10-28 Paolo Bonzini <bonzini@gnu.org>
* recog.c (split_all_insns): Remove dead code.

View File

@ -8149,12 +8149,13 @@ sh_dwarf_register_span (rtx reg)
static enum machine_mode
sh_promote_function_mode (const_tree type, enum machine_mode mode,
int *punsignedp, const_tree funtype,
int for_return ATTRIBUTE_UNUSED)
int for_return)
{
if (sh_promote_prototypes (funtype))
return promote_mode (type, mode, punsignedp);
else
return mode;
return default_promote_function_mode (type, mode, punsignedp, funtype,
for_return);
}
static bool