aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1994-02-21 14:48:20 -0800
committerJim Wilson <wilson@gcc.gnu.org>1994-02-21 14:48:20 -0800
commit13fa4e7a47a5428094c20f90f5d713bba747ccd5 (patch)
tree95ca113477a4d14479fb6c00f34d9b86c3a5e545
parentf81518715123a676a6927f449650ebd1f87b8046 (diff)
downloadgcc-13fa4e7a47a5428094c20f90f5d713bba747ccd5.zip
gcc-13fa4e7a47a5428094c20f90f5d713bba747ccd5.tar.gz
gcc-13fa4e7a47a5428094c20f90f5d713bba747ccd5.tar.bz2
(fatal, error): Add ! HAVE_VPRINTF versions.
From-SVN: r6598
-rw-r--r--gcc/mips-tfile.c23
1 files changed, 23 insertions, 0 deletions
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. */