java/1448: -M doesn't work for .java files

mike@pillim.demon.co.uk mike@pillim.demon.co.uk
Wed Dec 20 12:28:00 GMT 2000


>Number:         1448
>Category:       java
>Synopsis:       -M doesn't work for .java files
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    tromey
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 20 12:20:01 PST 2000
>Closed-Date:    Tue Oct 19 15:13:29 PDT 1999
>Last-Modified:  Tue Oct 19 16:00:00 PDT 1999
>Originator:     Mike Moreton
>Release:        gcc version 2.95.1 19990816 (release)
>Organization:
>Environment:

>Description:
-M and -MM don't print out dependancies for .java files,
including the source file being processed.
>How-To-Repeat:
gcj -MM Test.java
>Fix:
In jcf-parse.c, in function parse_source_file(),
add the following line as the first executable line
(just before the /* Mark the file as parsed */ comment)

jcf_dependency_add_file (input_filename, 0);
>Release-Note:

>Audit-Trail:

Formerly PR gcj/69

Responsible-Changed-From-To: apbianco->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Tue Oct 19 15:13:29 1999
Responsible-Changed-Why:
    I changed it, so I guess I'm responsible for it.
State-Changed-From-To: open->closed
State-Changed-By: tromey
State-Changed-When: Tue Oct 19 15:13:29 1999
State-Changed-Why:
    I looked at your proposed fix and it looked ok to me,
    so I'm checking it in.
    I'm closing this PR directly since I think we all agree
    that this fix works.  If you have a further problem with
    it just reply and I'll reopen the PR.
    
    Alex, if you dislike the patch for some reason feel
    free to tell me & I'll fix it to your liking.

From: tromey@cygnus.com
To: apbianco@cygnus.com, java-gnats@sourceware.cygnus.com,
  mike@pillim.demon.co.uk, tromey@cygnus.com
Cc:  
Subject: Re: gcj/69
Date: 19 Oct 1999 22:13:29 -0000

 Synopsis: -M doesn't work for .java files
 
 Responsible-Changed-From-To: apbianco->tromey
 Responsible-Changed-By: tromey
 Responsible-Changed-When: Tue Oct 19 15:13:29 1999
 Responsible-Changed-Why:
     I changed it, so I guess I'm responsible for it.
 State-Changed-From-To: open->closed
 State-Changed-By: tromey
 State-Changed-When: Tue Oct 19 15:13:29 1999
 State-Changed-Why:
     I looked at your proposed fix and it looked ok to me,
     so I'm checking it in.
     I'm closing this PR directly since I think we all agree
     that this fix works.  If you have a further problem with
     it just reply and I'll reopen the PR.
     
     Alex, if you dislike the patch for some reason feel
     free to tell me & I'll fix it to your liking.
 
 http://sourceware.cygnus.com/cgi-bin/gnatsweb.pl?cmd=view&database=java&pr=69

From: Alexandre Petit-Bianco <apbianco@cygnus.com>
To: java-gnats@sourceware.cygnus.com
Cc:  
Subject: Re: gcj/69
Date: Tue, 19 Oct 1999 15:56:45 -0700

 tromey@cygnus.com writes:
 
 >     Alex, if you dislike the patch for some reason feel
 >     free to tell me & I'll fix it to your liking.
 
 The patch is fine: `parse_source_file' gets called for every single
 java source file that needs to be parsed.
 
 Thank you guys for taking care of it.
 
 ./A
>Unformatted:




More information about the Gcc-prs mailing list