This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] frv: Hookize TARGET_SETUP_INCOMING_VARARGS.


Hi,

Attached is a patch to hookize TARGET_SETUP_INCOMING_VARARGS, which I
forgot to take care of last time.

Built cc1 of frv-elf.  OK to apply?

Kazu Hirata

2004-01-29  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.

Index: frv-protos.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/frv/frv-protos.h,v
retrieving revision 1.11
diff -u -r1.11 frv-protos.h
--- frv-protos.h	29 Jan 2004 01:31:13 -0000	1.11
+++ frv-protos.h	29 Jan 2004 16:15:23 -0000
@@ -96,10 +96,6 @@
 						 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: frv.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/frv/frv.c,v
retrieving revision 1.45
diff -u -r1.45 frv.c
--- frv.c	29 Jan 2004 15:59:23 -0000	1.45
+++ frv.c	29 Jan 2004 16:15:28 -0000
@@ -263,6 +263,9 @@
 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 @@
 
 #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;
 
@@ -1906,9 +1911,9 @@
 }
 
 
-/* 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: frv.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/frv/frv.h,v
retrieving revision 1.35
diff -u -r1.35 frv.h
--- frv.h	29 Jan 2004 15:59:24 -0000	1.35
+++ frv.h	29 Jan 2004 16:15:31 -0000
@@ -2083,10 +2083,6 @@
 
 /* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]