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:
parent
94e71ec0ea
commit
8a575d5a19
2 changed files with 8 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue