diff options
author | Anatoly Sokolov <aesok@post.ru> | 2009-09-23 23:08:32 +0400 |
---|---|---|
committer | Anatoly Sokolov <aesok@gcc.gnu.org> | 2009-09-23 23:08:32 +0400 |
commit | 9193312a099c192f134768d0567fb5d29107a796 (patch) | |
tree | b57e7836413d000dfc58eb45ce85dd346660833e | |
parent | 9ed7423543f3d321058eefc527972d5db7ce3b83 (diff) | |
download | gcc-9193312a099c192f134768d0567fb5d29107a796.tar.gz |
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
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/config/pa/pa-protos.h | 1 | ||||
-rw-r--r-- | gcc/config/pa/pa.c | 8 | ||||
-rw-r--r-- | gcc/config/pa/pa.h | 7 |
4 files changed, 15 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 41493dcf733..acca4cc5838 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,13 @@ 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. diff --git a/gcc/config/pa/pa-protos.h b/gcc/config/pa/pa-protos.h index 526081acd52..e71d8a1e82c 100644 --- a/gcc/config/pa/pa-protos.h +++ b/gcc/config/pa/pa-protos.h @@ -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 */ diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 09c830ea22c..96fe2fbdde7 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -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; diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 7716e73fb91..4b10a0a3b9b 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -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. */ |