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]

Re: gcc/java/Make-lang.in: Add dependencies for mangle_name.o



Raja R Harinath writes:

> +java/mangle_name.o: java/mangle_name.o $(CONFIG_H) ...

I guess it should be:

+java/mangle_name.o: java/mangle_name.c $(CONFIG_H) ...

I'm going to check this in, along with a patch that links jvgenmain
againts errors.o, which should take care of the missing `error' the
right way. Here it is:

./A

2001-02-09  Raja R Harinath  <harinath@cs.umn.edu>

	* Make-lang.in (java/mangle_name.o): Add 'make' prereqs.

2001-02-09  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* Manke-lang.in (JVGENMAIN_OBJS): Added `errors.o'
	* jvgenmain.c (error): Reversed 2001-02-09 patch. `error' is now
	gone.

Index: Make-lang.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/Make-lang.in,v
retrieving revision 1.51
diff -u -p -r1.51 Make-lang.in
--- Make-lang.in	2001/02/09 00:32:11	1.51
+++ Make-lang.in	2001/02/09 21:17:18
@@ -112,7 +112,7 @@ JVSCAN_OBJS = java/parse-scan.o java/jv-
 JCFDUMP_OBJS = java/jcf-dump.o java/jcf-io.o java/jcf-depend.o java/jcf-path.o \
 		java/zextract.o errors.o version.o mkdeps.o
 
-JVGENMAIN_OBJS = java/jvgenmain.o java/mangle_name.o
+JVGENMAIN_OBJS = java/jvgenmain.o java/mangle_name.o errors.o
 
 # Use loose warnings for this front end.
 java-warn =
@@ -269,6 +269,8 @@ java/lang.o: java/lang.c $(CONFIG_H) $(J
   toplev.h system.h $(RTL_H) $(EXPR_H)
 java/mangle.o: java/mangle.c $(CONFIG_H) java/jcf.h $(JAVA_TREE_H) system.h \
   toplev.h $(GGC_H)
+java/mangle_name.o: java/mangle_name.c $(CONFIG_H) java/jcf.h $(JAVA_TREE_H) \
+  system.h toplev.h $(GGC_H)
 java/parse-scan.o: $(CONFIG_H) system.h toplev.h $(JAVA_LEX_C) java/parse.h \
   java/lex.h
 java/typeck.o: java/typeck.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h \
Index: jvgenmain.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/jvgenmain.c,v
retrieving revision 1.22
diff -u -p -r1.22 jvgenmain.c
--- jvgenmain.c	2001/02/09 19:41:28	1.22
+++ jvgenmain.c	2001/02/09 21:17:18
@@ -33,7 +33,6 @@ 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;
@@ -65,27 +64,6 @@ 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]