diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1998-05-07 11:44:09 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1998-05-07 11:44:09 +0000 |
commit | 76b4b31ead81f9c957962ab76df73c59a0650f14 (patch) | |
tree | 5f6e3c811759ee18df724c996ca8d1989e3b49b7 /gcc/genattrtab.c | |
parent | bebc46636dadf957cf8d1eac2fe1e73c292e9983 (diff) | |
download | gcc-76b4b31ead81f9c957962ab76df73c59a0650f14.zip gcc-76b4b31ead81f9c957962ab76df73c59a0650f14.tar.gz gcc-76b4b31ead81f9c957962ab76df73c59a0650f14.tar.bz2 |
Handle missing vfprintf() & _doprnt() functions with linked in modules,
plus do some general cleanup of variable argument handling.
* aclocal.m4 (GCC_FUNC_VFPRINTF_DOPRNT): New macro.
* configure.in: Add a call to GCC_FUNC_VFPRINTF_DOPRNT.
(AC_CHECK_HEADERS): Remove unused check for varargs.h,sys/varargs.h.
(AC_CHECK_FUNCS): Remove unused check for vprintf.
* Makefile.in: Add support for linking in vfprintf.c and doprint.c.
(cccp.o): Depend on gansidecl.h.
(cexp.o): Likewise.
* cccp.c: Convert from using PRINTF_ALIST/PRINTF_DCL to VPROTO as
per the rest of gcc source.
* cexp.y: Likewise. Include gansidecl.h and remove all code made
redundant.
* cccp.c: Remove checks for HAVE_VPRINTF and the associated code
used when vfprintf is missing.
* cexp.y: Likewise.
* gcc.c: Likewise.
* genattrtab.c: Likewise.
* mips-tfile.c: Likewise.
* toplev.c: Likewise.
* vfprintf.c: New file.
* doprint.c: Likewise.
From-SVN: r19610
Diffstat (limited to 'gcc/genattrtab.c')
-rw-r--r-- | gcc/genattrtab.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c index 8f2e887..a1538f2 100644 --- a/gcc/genattrtab.c +++ b/gcc/genattrtab.c @@ -366,12 +366,7 @@ rtx pic_offset_table_rtx; static void attr_hash_add_rtx PROTO((int, rtx)); static void attr_hash_add_string PROTO((int, char *)); static rtx attr_rtx PVPROTO((enum rtx_code, ...)); -#ifdef HAVE_VPRINTF static char *attr_printf PVPROTO((int, char *, ...)); -#else -static char *attr_printf (); -#endif - static char *attr_string PROTO((char *, int)); static rtx check_attr_test PROTO((rtx, int)); static rtx check_attr_value PROTO((rtx, struct attr_desc *)); @@ -736,8 +731,6 @@ attr_rtx VPROTO((enum rtx_code code, ...)) rtx attr_printf (len, format, [arg1, ..., argn]) */ -#ifdef HAVE_VPRINTF - /*VARARGS2*/ static char * attr_printf VPROTO((register int len, char *fmt, ...)) @@ -764,24 +757,6 @@ attr_printf VPROTO((register int len, char *fmt, ...)) return attr_string (str, strlen (str)); } -#else /* not HAVE_VPRINTF */ - -static char * -attr_printf (len, fmt, arg1, arg2, arg3) - int len; - char *fmt; - char *arg1, *arg2, *arg3; /* also int */ -{ - register char *str; - - /* Print the string into a temporary location. */ - str = (char *) alloca (len); - sprintf (str, fmt, arg1, arg2, arg3); - - return attr_string (str, strlen (str)); -} -#endif /* not HAVE_VPRINTF */ - rtx attr_eq (name, value) char *name, *value; |