This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


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

Patch: fix gcj -M



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.

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