aboutsummaryrefslogtreecommitdiff
path: root/gcc/mips-tfile.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-05-07 11:44:09 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-05-07 11:44:09 +0000
commit76b4b31ead81f9c957962ab76df73c59a0650f14 (patch)
tree5f6e3c811759ee18df724c996ca8d1989e3b49b7 /gcc/mips-tfile.c
parentbebc46636dadf957cf8d1eac2fe1e73c292e9983 (diff)
downloadgcc-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/mips-tfile.c')
-rw-r--r--gcc/mips-tfile.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/gcc/mips-tfile.c b/gcc/mips-tfile.c
index 49654c0..1c4b935 100644
--- a/gcc/mips-tfile.c
+++ b/gcc/mips-tfile.c
@@ -671,15 +671,8 @@ extern PTR_T xcalloc __proto((Size_t, Size_t));
extern PTR_T xrealloc __proto((PTR_T, Size_t));
extern void xfree __proto((PTR_T));
-#ifdef HAVE_VPRINTF
extern void fatal PVPROTO((const char *format, ...));
extern void error PVPROTO((const char *format, ...));
-#else
-/* We must not provide any prototype here, even if ANSI C. */
-extern void fatal __proto(());
-extern void error __proto(());
-#endif
-
#ifndef MIPS_DEBUGGING_INFO
@@ -5565,8 +5558,6 @@ free_thead (ptr)
#endif /* MIPS_DEBUGGING_INFO */
-#ifdef HAVE_VPRINTF
-
/* Output an error message and exit */
/*VARARGS*/
@@ -5630,27 +5621,6 @@ error VPROTO((const char *format, ...))
saber_stop ();
}
-#else /* not HAVE_VPRINTF */
-
-void
-fatal (msg, arg1, arg2)
- char *msg, *arg1, *arg2;
-{
- error (msg, arg1, arg2);
- exit (1);
-}
-
-void
-error (msg, arg1, arg2)
- char *msg, *arg1, *arg2;
-{
- fprintf (stderr, "%s: ", progname);
- fprintf (stderr, msg, arg1, arg2);
- fprintf (stderr, "\n");
-}
-
-#endif /* not HAVE_VPRINTF */
-
/* More 'friendly' abort that prints the line and file.
config.h can #define abort fancy_abort if you like that sort of thing. */