summaryrefslogtreecommitdiff
path: root/gcc/mips-tfile.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1994-02-21 22:48:20 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1994-02-21 22:48:20 +0000
commit0622788876a445f4a4ea350d06ada97509736790 (patch)
tree95ca113477a4d14479fb6c00f34d9b86c3a5e545 /gcc/mips-tfile.c
parentbd776f4542ac140e1ff5ee004ef39e2ada601cad (diff)
downloadgcc-0622788876a445f4a4ea350d06ada97509736790.tar.gz
(fatal, error): Add ! HAVE_VPRINTF versions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6598 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/mips-tfile.c')
-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 aaf9bcfe930..50e24f86367 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. */