Patch: gcj -M -vs- .java
Tom Tromey
tromey@cygnus.com
Tue Oct 19 15:11:00 GMT 1999
I'm checking in the appended patch. This fixes libgcj PR 69, which
reports that `gcj -M foo.java' does not generate the correct
dependency list.
1999-10-19 Tom Tromey <tromey@cygnus.com>
* jcf-parse.c (parse_source_file): Call jcf_dependency_add_file.
From Mike Moreton <mike@pillim.demon.co.uk>.
Tom
Index: jcf-parse.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/jcf-parse.c,v
retrieving revision 1.34
diff -u -r1.34 jcf-parse.c
--- jcf-parse.c 1999/09/16 15:45:10 1.34
+++ jcf-parse.c 1999/10/19 22:07:35
@@ -750,6 +750,8 @@
/* Mark the file as parsed */
HAS_BEEN_ALREADY_PARSED_P (file) = 1;
+ jcf_dependency_add_file (input_filename, 0);
+
lang_init_source (1); /* Error msgs have no method prototypes */
java_init_lex (); /* Initialize the parser */
More information about the Gcc-patches
mailing list