From b8a373b2d27e74a3ccac2073472fe540e1e900dc Mon Sep 17 00:00:00 2001 From: ghazi Date: Thu, 7 May 1998 11:44:09 +0000 Subject: 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19610 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config.in | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'gcc/config.in') diff --git a/gcc/config.in b/gcc/config.in index e25ffb00b30..772c165e248 100644 --- a/gcc/config.in +++ b/gcc/config.in @@ -47,6 +47,12 @@ /* Whether abort must be declared even if is included. */ #undef NEED_DECLARATION_ABORT +/* Define if you don't have vprintf but do have _doprnt. */ +#undef HAVE_DOPRNT + +/* Define if you have the vprintf function. */ +#undef HAVE_VPRINTF + /* Define if you have the ANSI C header files. */ #undef STDC_HEADERS @@ -113,9 +119,6 @@ /* Define if you have the sysconf function. */ #undef HAVE_SYSCONF -/* Define if you have the vprintf function. */ -#undef HAVE_VPRINTF - /* Define if you have the header file. */ #undef HAVE_FCNTL_H @@ -152,9 +155,6 @@ /* Define if you have the header file. */ #undef HAVE_SYS_TIMES_H -/* Define if you have the header file. */ -#undef HAVE_SYS_VARARGS_H - /* Define if you have the header file. */ #undef HAVE_SYS_WAIT_H @@ -164,8 +164,5 @@ /* Define if you have the header file. */ #undef HAVE_UNISTD_H -/* Define if you have the header file. */ -#undef HAVE_VARARGS_H - /* Define if you have the header file. */ #undef HAVE_WAIT_H -- cgit v1.2.1