This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: fix gcj -M
- To: java-patches at sourceware dot cygnus dot com
- Subject: Patch: fix gcj -M
- From: Matt Welsh <mdw at cs dot berkeley dot edu>
- Date: Mon, 03 Apr 2000 13:31:09 -0700
- Reply-To: Matt Welsh <mdw at cs dot berkeley dot edu>
The following patch fixes 'gcj -M' to correctly print the full list of
dependencies for a given '.java' or '.class' file.
This is against gcc-2.95.2 although this appears to have been fixed in
newer versions of EGCS. Bryce, you might want to add this to your gcc-2.95.2
patch anyway...
Matt
*** jcf-depend.c.old Mon Apr 3 13:27:10 2000
--- jcf-depend.c Mon Apr 3 13:23:30 2000
***************
*** 89,95 ****
ent->file = strdup (name);
ent->next = NULL;
! if (last == *entp)
{
// This is only true the first time through, when the entry list
// is empty.
--- 89,95 ----
ent->file = strdup (name);
ent->next = NULL;
! if (NULL == *entp)
{
// This is only true the first time through, when the entry list
// is empty.
*** ChangeLog.old Mon Apr 3 13:26:17 2000
--- ChangeLog Mon Apr 3 13:24:58 2000
***************
*** 1,3 ****
--- 1,8 ----
+ 2000-04-03 Matt Welsh <mdw@cs.berkeley.edu>
+
+ * jcf-depend.c (add_entry): Fixed bug where list was always replaced
+ with latest entry.
+
2000-02-23 Tom Tromey <tromey@cygnus.com>
* gjavah.c (print_name): In JNI case, correctly quote string.