aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2010-10-29 06:48:39 +0000
committerPaolo Bonzini <bonzini@gcc.gnu.org>2010-10-29 06:48:39 +0000
commit8a575d5a19921067667378221af5ed250711a352 (patch)
tree43191dc9fdf2f7ad81c8d060ba0e3167b1ba7f98 /gcc
parent94e71ec0eac88b2b71354d93216b368e8df767af (diff)
downloadgcc-8a575d5a19921067667378221af5ed250711a352.zip
gcc-8a575d5a19921067667378221af5ed250711a352.tar.gz
gcc-8a575d5a19921067667378221af5ed250711a352.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/sh/sh.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 71e8260..2ed0778 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c
index 40587b5..54e7be8 100644
--- a/gcc/config/sh/sh.c
+++ b/gcc/config/sh/sh.c
@@ -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