]> gcc.gnu.org Git - gcc.git/commitdiff
sh.c (sh_promote_function_mode): Use default_promote_function_mode if !sh_promote_pro...
authorPaolo Bonzini <bonzini@gnu.org>
Fri, 29 Oct 2010 06:48:39 +0000 (06:48 +0000)
committerPaolo Bonzini <bonzini@gcc.gnu.org>
Fri, 29 Oct 2010 06:48:39 +0000 (06:48 +0000)
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

gcc/ChangeLog
gcc/config/sh/sh.c

index 71e826020837d294c6038d75be2d29ee319ceda6..2ed07781e464283898522b59abf53ed13850ca41 100644 (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.
index 40587b5ab84e766915ceb224e58c2e9576b4a2d4..54e7be849470457c2564d80b43a5e39b1ab505ce 100644 (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
This page took 0.12973 seconds and 5 git commands to generate.