aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/pa
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>2009-08-02 02:57:37 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2009-08-02 02:57:37 +0000
commit02095c5014adb3c04d3164819ebf953f85ccdb70 (patch)
tree24b7fdf3dbfcb9c609c26b10e3d3593bb1c38434 /gcc/config/pa
parent1f7ec57e692835962f980e68e78f87bd3e10bec2 (diff)
downloadgcc-02095c5014adb3c04d3164819ebf953f85ccdb70.zip
gcc-02095c5014adb3c04d3164819ebf953f85ccdb70.tar.gz
gcc-02095c5014adb3c04d3164819ebf953f85ccdb70.tar.bz2
pa.c (pa_promote_function_mode): Declare.
* pa.c (pa_promote_function_mode): Declare. Change to static. Fix promote_mode call. From-SVN: r150343
Diffstat (limited to 'gcc/config/pa')
-rw-r--r--gcc/config/pa/pa.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c
index bbd09f5..9176db7 100644
--- a/gcc/config/pa/pa.c
+++ b/gcc/config/pa/pa.c
@@ -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