]> gcc.gnu.org Git - gcc.git/commitdiff
(fatal, error): Add ! HAVE_VPRINTF versions.
authorJim Wilson <wilson@gcc.gnu.org>
Mon, 21 Feb 1994 22:48:20 +0000 (14:48 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Mon, 21 Feb 1994 22:48:20 +0000 (14:48 -0800)
From-SVN: r6598

gcc/mips-tfile.c

index aaf9bcfe930e2848532462c337287a92eed65ee7..50e24f86367947c1987292fbf9382261a284be4f 100644 (file)
@@ -5537,6 +5537,8 @@ free_thead (ptr)
 #endif /* MIPS_DEBUGGING_INFO */
 
 \f
+#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.  */
 
This page took 0.057769 seconds and 5 git commands to generate.