This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bootstrap failure: java/mangle_name.c, tm.h and insn-codes.h: Nosuch file or directory
Alexandre Petit-Bianco writes:
> OK. I'm testing this patch, but it's taking longer than
> expected. There here it is. Sorry about that.
OK. This seems to work. I'm checking this in.
./A
2001-02-09 Alexandre Petit-Bianco <apbianco@redhat.com>
* jvgenmain.c (error): Reversed 2001-02-01 deletion.
Index: jvgenmain.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/jvgenmain.c,v
retrieving revision 1.21
diff -u -p -r1.21 jvgenmain.c
--- jvgenmain.c 2001/02/09 00:32:11 1.21
+++ jvgenmain.c 2001/02/09 19:31:01
@@ -33,6 +33,7 @@ The Free Software Foundation is independ
#include "java-tree.h"
static char * do_mangle_classname PARAMS ((const char *string));
+void error PARAMS ((const char *, ...)) ATTRIBUTE_PRINTF_1;
struct obstack name_obstack;
struct obstack *mangle_obstack = &name_obstack;
@@ -64,6 +65,27 @@ usage (const char *name)
{
fprintf (stderr, "Usage: %s [OPTIONS]... CLASSNAME [OUTFILE]\n", name);
exit (1);
+}
+
+/* This function is defined here to help us link jvgenmain at
+ bootstrap. */
+
+void
+error VPARAMS ((const char *msgid, ...))
+{
+#ifndef ANSI_PROTOTYPES
+ const char *msgid;
+#endif
+ va_list ap;
+
+ VA_START (ap, msgid);
+
+#ifndef ANSI_PROTOTYPES
+ msgid = va_arg (ap, const char *);
+#endif
+
+ vfprintf (stderr, msgid, ap);
+ va_end (ap);
}
int