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.
#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 */
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);
#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
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;
#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. */