pa.h (FUNCTION_VALUE): Remove macro.
authorAnatoly Sokolov <aesok@post.ru>
Wed, 23 Sep 2009 19:08:32 +0000 (23:08 +0400)
committerAnatoly Sokolov <aesok@gcc.gnu.org>
Wed, 23 Sep 2009 19:08:32 +0000 (23:08 +0400)
* 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

gcc/ChangeLog
gcc/config/pa/pa-protos.h
gcc/config/pa/pa.c
gcc/config/pa/pa.h

index 41493dc..acca4cc 100644 (file)
@@ -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.
index 526081a..e71d8a1 100644 (file)
@@ -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 */
index 09c830e..96fe2fb 100644 (file)
@@ -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;
 
index 7716e73..4b10a0a 100644 (file)
@@ -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.  */