From 13fa4e7a47a5428094c20f90f5d713bba747ccd5 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Mon, 21 Feb 1994 14:48:20 -0800 Subject: (fatal, error): Add ! HAVE_VPRINTF versions. From-SVN: r6598 --- gcc/mips-tfile.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'gcc') diff --git a/gcc/mips-tfile.c b/gcc/mips-tfile.c index aaf9bcf..50e24f8 100644 --- a/gcc/mips-tfile.c +++ b/gcc/mips-tfile.c @@ -5537,6 +5537,8 @@ free_thead (ptr) #endif /* MIPS_DEBUGGING_INFO */ +#ifdef HAVE_VPRINTF + /* Output an error message and exit */ /*VARARGS*/ @@ -5600,6 +5602,27 @@ error VPROTO((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. */ -- cgit v1.1