This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
va_arg cleanups for sparc
- From: Richard Henderson <rth at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 9 Jul 2004 03:05:43 -0700
- Subject: va_arg cleanups for sparc
Sparc has already been converted, but two things got missed.
r~
* config/sparc/sparc-protos.h (sparc_va_arg): Remove.
* config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
Index: config/sparc/sparc-protos.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sparc/sparc-protos.h,v
retrieving revision 1.44
diff -u -p -r1.44 sparc-protos.h
--- config/sparc/sparc-protos.h 30 Jun 2004 21:45:27 -0000 1.44
+++ config/sparc/sparc-protos.h 9 Jul 2004 09:46:16 -0000
@@ -38,7 +38,6 @@ extern int function_arg_pass_by_referenc
extern void init_cumulative_args (CUMULATIVE_ARGS *, tree, rtx, tree);
extern void sparc_va_start (tree, rtx);
#endif
-extern struct rtx_def *sparc_va_arg (tree, tree);
extern unsigned long sparc_type_code (tree);
#ifdef ARGS_SIZE_RTX
/* expr.h defines ARGS_SIZE_RTX and `enum direction' */
Index: config/sparc/sparc.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sparc/sparc.c,v
retrieving revision 1.314
diff -u -p -r1.314 sparc.c
--- config/sparc/sparc.c 8 Jul 2004 14:33:20 -0000 1.314
+++ config/sparc/sparc.c 9 Jul 2004 09:46:17 -0000
@@ -5816,7 +5816,7 @@ sparc_va_start (tree valist, rtx nextarg
/* Implement `va_arg' for stdarg. */
-tree
+static tree
sparc_gimplify_va_arg (tree valist, tree type, tree *pre_p, tree *post_p)
{
HOST_WIDE_INT size, rsize, align;