[committed] Fix previous change to pa.c
John David Anglin
dave@hiauly1.hia.nrc.ca
Sun Aug 2 03:03:00 GMT 2009
The enclosed fixes compile errors instroduced in the previous change
to the file. Tested on hppa-unknown-linux-gnu. Committed to trunk.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
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.
Index: config/pa/pa.c
===================================================================
--- config/pa/pa.c (revision 150336)
+++ config/pa/pa.c (working copy)
@@ -159,6 +159,11 @@
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 @@
/* 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 @@
{
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
More information about the Gcc-patches
mailing list