From 4f90e4a0f7084a911114061d22a7098a295f9bec Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 10 Feb 1994 08:07:10 -0500 Subject: If __STDC__, include gstdarg and use ANSI form of varargs. From-SVN: r6514 --- gcc/final.c | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) (limited to 'gcc/final.c') diff --git a/gcc/final.c b/gcc/final.c index 76bbc36..d4b34b2 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -1,5 +1,5 @@ /* Convert RTL to assembler code and output it, for GNU compiler. - Copyright (C) 1987, 1988, 1989, 1992, 1993 Free Software Foundation, Inc. + Copyright (C) 1987, 88, 89, 92, 93, 1994 Free Software Foundation, Inc. This file is part of GNU CC. @@ -44,7 +44,11 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ FUNCTION_EPILOGUE. Those instructions never exist as rtl. */ #include "config.h" +#ifdef __STDC__ +#include "gstdarg.h" +#else #include "gvarargs.h" +#endif #include "tree.h" #include "rtl.h" #include "regs.h" @@ -2679,19 +2683,24 @@ output_addr_const (file, x) We handle alternate assembler dialects here, just like output_asm_insn. */ void -asm_fprintf (va_alist) - va_dcl +asm_fprintf VPROTO((FILE *file, char *p, ...)) { - va_list argptr; +#ifndef __STDC__ FILE *file; + char *p; +#endif + va_list argptr; char buf[10]; - char *p, *q, c; + char *q, c; int i; - va_start (argptr); + VA_START (argptr, p); + +#ifndef __STDC__ + file = va_arg (argptr, FILE*); + p = va_arg (argptr, char*); +#endif - file = va_arg (argptr, FILE *); - p = va_arg (argptr, char *); buf[0] = '%'; while (c = *p++) -- cgit v1.1