]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pa.c (pa_promote_function_mode): Declare.
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Sun, 2 Aug 2009 02:57:37 +0000 (02:57 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sun, 2 Aug 2009 02:57:37 +0000 (02:57 +0000)
* pa.c (pa_promote_function_mode): Declare.  Change to static.
Fix promote_mode call.

From-SVN: r150343

gcc/ChangeLog
gcc/config/pa/pa.c

index f42623d9cbe13aa67144258e284b9b01ae4a9572..1a0e228f65ec39d87a664defa824ed940dd083d0 100644 (file)
@@ -1,5 +1,8 @@
 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
+       * pa.c (pa_promote_function_mode): Declare.  Change to static.
+       Fix promote_mode call.
+
        * gthr-dce.h (CONST_CAST2): Define if not defined.
        (__gthread_setspecific): Use CONST_CAST2 to fix warning.
 
index bbd09f522e04b07a6074cc4fa8cb3b76b01f94e9..9176db7b7efcd8d21fb762618b7f51d10d35500f 100644 (file)
@@ -159,6 +159,11 @@ static enum reg_class pa_secondary_reload (bool, rtx, enum reg_class,
                                           enum machine_mode,
                                           secondary_reload_info *);
 static void pa_extra_live_on_entry (bitmap);
+static enum machine_mode pa_promote_function_mode (const_tree ATTRIBUTE_UNUSED,
+                                                  enum machine_mode,
+                                                  int * ATTRIBUTE_UNUSED,
+                                                  const_tree ATTRIBUTE_UNUSED,
+                                                  int for_return);
 
 /* The following extra sections are only used for SOM.  */
 static GTY(()) section *som_readonly_data_section;
@@ -9189,7 +9194,7 @@ insn_refs_are_delayed (rtx insn)
 
 /* Promote the return value, but not the arguments.  */
 
-enum machine_mode
+static enum machine_mode
 pa_promote_function_mode (const_tree type ATTRIBUTE_UNUSED,
                           enum machine_mode mode,
                           int *punsignedp ATTRIBUTE_UNUSED,
@@ -9198,7 +9203,7 @@ pa_promote_function_mode (const_tree type ATTRIBUTE_UNUSED,
 {
   if (!for_return)
     return mode;
-  return promote_mode (mode, punsignedp, type);
+  return promote_mode (type, mode, punsignedp);
 }
 
 /* On the HP-PA the value is found in register(s) 28(-29), unless