Commit 02095c50 by John David Anglin Committed by John David Anglin

pa.c (pa_promote_function_mode): Declare.

	* pa.c (pa_promote_function_mode): Declare.  Change to static.
	Fix promote_mode call.

From-SVN: r150343
parent 1f7ec57e
2009-08-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 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. * gthr-dce.h (CONST_CAST2): Define if not defined.
(__gthread_setspecific): Use CONST_CAST2 to fix warning. (__gthread_setspecific): Use CONST_CAST2 to fix warning.
......
...@@ -159,6 +159,11 @@ static enum reg_class pa_secondary_reload (bool, rtx, enum reg_class, ...@@ -159,6 +159,11 @@ static enum reg_class pa_secondary_reload (bool, rtx, enum reg_class,
enum machine_mode, enum machine_mode,
secondary_reload_info *); secondary_reload_info *);
static void pa_extra_live_on_entry (bitmap); 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. */ /* The following extra sections are only used for SOM. */
static GTY(()) section *som_readonly_data_section; static GTY(()) section *som_readonly_data_section;
...@@ -9189,7 +9194,7 @@ insn_refs_are_delayed (rtx insn) ...@@ -9189,7 +9194,7 @@ insn_refs_are_delayed (rtx insn)
/* Promote the return value, but not the arguments. */ /* Promote the return value, but not the arguments. */
enum machine_mode static enum machine_mode
pa_promote_function_mode (const_tree type ATTRIBUTE_UNUSED, pa_promote_function_mode (const_tree type ATTRIBUTE_UNUSED,
enum machine_mode mode, enum machine_mode mode,
int *punsignedp ATTRIBUTE_UNUSED, int *punsignedp ATTRIBUTE_UNUSED,
...@@ -9198,7 +9203,7 @@ pa_promote_function_mode (const_tree type ATTRIBUTE_UNUSED, ...@@ -9198,7 +9203,7 @@ pa_promote_function_mode (const_tree type ATTRIBUTE_UNUSED,
{ {
if (!for_return) if (!for_return)
return mode; 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 /* On the HP-PA the value is found in register(s) 28(-29), unless
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment