frv-protos.h: Remove the prototype for frv_setup_incoming_varargs.
authorKazu Hirata <kazu@cs.umass.edu>
Fri, 6 Feb 2004 05:52:02 +0000 (05:52 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Fri, 6 Feb 2004 05:52:02 +0000 (05:52 +0000)
* config/frv/frv-protos.h: Remove the prototype for
frv_setup_incoming_varargs.
* config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
(frv_setup_incoming_varargs): Make it static.
* config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.

From-SVN: r77376

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

index c3dbb552593275fccfd5fb9d38ffad4f86663b10..665435746ee24eca8631e6044c586ef252d62dd5 100644 (file)
@@ -1,3 +1,11 @@
+2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/frv/frv-protos.h: Remove the prototype for
+       frv_setup_incoming_varargs.
+       * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
+       (frv_setup_incoming_varargs): Make it static.
+       * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
+
 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/fr30/fr30-protos.h: Remove the prototype for
index ff720331fbec31b085175eadab1127a859ae334f..af35ca859f29de18440207ecbf83dcde1b7722da 100644 (file)
@@ -92,10 +92,6 @@ extern int frv_function_arg_callee_copies    (CUMULATIVE_ARGS *,
                                                 enum machine_mode,
                                                 tree, int);
 
-extern void frv_setup_incoming_varargs         (CUMULATIVE_ARGS *,
-                                                enum machine_mode,
-                                                tree, int *, int);
-
 extern void frv_expand_builtin_va_start                (tree, rtx);
 extern rtx frv_expand_builtin_va_arg           (tree, tree);
 #endif /* TREE_CODE */
index 32c2d27d6e3f3ebf26a91afbb638e68133d26cab..1773a825d6ad23de39f13b12a62f46d41343d9eb 100644 (file)
@@ -263,6 +263,9 @@ static void frv_init_libfuncs                       (void);
 static bool frv_in_small_data_p                        (tree);
 static void frv_asm_output_mi_thunk
   (FILE *, tree, HOST_WIDE_INT, HOST_WIDE_INT, tree);
+static void frv_setup_incoming_varargs         (CUMULATIVE_ARGS *,
+                                                enum machine_mode,
+                                                tree, int *, int);
 static rtx frv_expand_builtin_saveregs         (void);
 static bool frv_rtx_costs                      (rtx, int, int, int*);
 static void frv_asm_out_constructor            (rtx, int);
@@ -306,6 +309,8 @@ static rtx frv_struct_value_rtx                     (tree, int);
 
 #undef TARGET_EXPAND_BUILTIN_SAVEREGS
 #define TARGET_EXPAND_BUILTIN_SAVEREGS frv_expand_builtin_saveregs
+#undef TARGET_SETUP_INCOMING_VARARGS
+#define TARGET_SETUP_INCOMING_VARARGS frv_setup_incoming_varargs
 
 struct gcc_target targetm = TARGET_INITIALIZER;
 \f
@@ -1906,9 +1911,9 @@ frv_initial_elimination_offset (int from, int to)
 }
 
 \f
-/* Worker function for SETUP_INCOMING_VARARGS.  */
+/* Worker function for TARGET_SETUP_INCOMING_VARARGS.  */
 
-void
+static void
 frv_setup_incoming_varargs (CUMULATIVE_ARGS *cum,
                             enum machine_mode mode,
                             tree type ATTRIBUTE_UNUSED,
index 7a0e0475778a593b97099d33bb2a0494df565b5a..df5ae079372fe45085649645f60dc8c8f6e8c4c2 100644 (file)
@@ -2077,10 +2077,6 @@ struct machine_function GTY(())
 \f
 /* Implementing the Varargs Macros.  */
 
-#define SETUP_INCOMING_VARARGS(ARGS_SO_FAR, MODE, TYPE, PRETEND_ARGS_SIZE, SECOND_TIME) \
-  frv_setup_incoming_varargs (& ARGS_SO_FAR, (int) MODE, TYPE,         \
-                             & PRETEND_ARGS_SIZE, SECOND_TIME)
-
 /* Implement the stdarg/varargs va_start macro.  STDARG_P is nonzero if this
    is stdarg.h instead of varargs.h.  VALIST is the tree of the va_list
    variable to initialize.  NEXTARG is the machine independent notion of the