This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATH] Java: fix for boostrap problem (java/1922)


This seems to fix java/1922:

  http://gcc.gnu.org/ml/gcc-bugs/2001-02/msg00204.html

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]