Commit 9193312a by Anatoly Sokolov Committed by Anatoly Sokolov

pa.h (FUNCTION_VALUE): Remove macro.

	* config/pa/pa.h (FUNCTION_VALUE): Remove macro.
	* config/pa/pa-protos.h (function_value): Remove.
	* config/pa/pa.c (pa_function_value): Rename from function_value.
	Make static, add 'outgoing' argument.
	(TARGET_FUNCTION_VALUE): Define.

From-SVN: r152094
parent 9ed74235
2009-09-23 Anatoly Sokolov <aesok@post.ru>
* config/pa/pa.h (FUNCTION_VALUE): Remove macro.
* config/pa/pa-protos.h (function_value): Remove.
* config/pa/pa.c (pa_function_value): Rename from function_value.
Make static, add 'outgoing' argument.
(TARGET_FUNCTION_VALUE): Define.
2009-09-23 Anatoly Sokolov <aesok@post.ru>
* config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
instead of cfun->machine->is_leaf.
* config/avr/avr.h (machine_function): Remove is_leaf field.
......
......@@ -154,7 +154,6 @@ extern int reloc_needed (tree);
#ifdef RTX_CODE
extern rtx function_arg (CUMULATIVE_ARGS *, enum machine_mode,
tree, int);
extern rtx function_value (const_tree, const_tree);
#endif
extern bool pa_return_in_memory (const_tree, const_tree);
#endif /* TREE_CODE */
......
......@@ -103,6 +103,7 @@ static void store_reg (int, HOST_WIDE_INT, int);
static void store_reg_modify (int, int, HOST_WIDE_INT);
static void load_reg (int, HOST_WIDE_INT, int);
static void set_reg_plus_d (int, int, HOST_WIDE_INT, int);
static rtx pa_function_value (const_tree, const_tree, bool);
static void pa_output_function_prologue (FILE *, HOST_WIDE_INT);
static void update_total_code_bytes (unsigned int);
static void pa_output_function_epilogue (FILE *, HOST_WIDE_INT);
......@@ -231,6 +232,9 @@ static size_t n_deferred_plabels = 0;
#undef TARGET_ASM_FUNCTION_EPILOGUE
#define TARGET_ASM_FUNCTION_EPILOGUE pa_output_function_epilogue
#undef TARGET_FUNCTION_VALUE
#define TARGET_FUNCTION_VALUE pa_function_value
#undef TARGET_LEGITIMIZE_ADDRESS
#define TARGET_LEGITIMIZE_ADDRESS hppa_legitimize_address
......@@ -9226,7 +9230,9 @@ pa_promote_function_mode (const_tree type ATTRIBUTE_UNUSED,
to match the HP Compiler ABI. */
rtx
function_value (const_tree valtype, const_tree func ATTRIBUTE_UNUSED)
pa_function_value (const_tree valtype,
const_tree func ATTRIBUTE_UNUSED,
bool outgoing ATTRIBUTE_UNUSED)
{
enum machine_mode valmode;
......
......@@ -570,13 +570,6 @@ extern struct rtx_def *hppa_pic_save_rtx (void);
#define RETURN_POPS_ARGS(FUNDECL,FUNTYPE,SIZE) 0
/* Define how to find the value returned by a function.
VALTYPE is the data type of the value (as a tree).
If the precise function being called is known, FUNC is its FUNCTION_DECL;
otherwise, FUNC is 0. */
#define FUNCTION_VALUE(VALTYPE, FUNC) function_value (VALTYPE, FUNC)
/* Define how to find the value returned by a library function
assuming the value has mode MODE. */
......
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