This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Getting gcj to compile what it finds when scanning
- From: Tom Tromey <tromey at redhat dot com>
- To: Andrew Cowie <andrew at operationaldynamics dot com>
- Cc: "java at gcc dot gnu dot org" <java at gcc dot gnu dot org>
- Date: 20 Feb 2005 13:13:07 -0700
- Subject: Re: Getting gcj to compile what it finds when scanning
- References: <1108863287.7536.41.camel@sirius.syd.operationaldynamics.com>
- Reply-to: tromey at redhat dot com
>>>>> "Andrew" == Andrew Cowie <andrew@operationaldynamics.com> writes:
Andrew> gcj does this if you are having it generate .class files (-C) and you
Andrew> give it a -d flag
Hmm, I thought it didn't do this.
Andrew> but for reasons that were discussed about 4 years ago, gcj -d
Andrew> -c does not follow that behaviour; although it will scan the
Andrew> classpath, it will only compile source files that were listed
Andrew> on the command line.
Yeah. This is related to PR 1308, one of our oldest PRs.
Andrew> Is having gcj automatically compile necessary complements
Andrew> hypothetically possible, or does it violate some ancient
Andrew> deeply held religious superstition? If it were to be doable, I
Andrew> don't suppose there is any chance that it might sneak its way
Andrew> into GCJ-4?
I think the problem is that this is something that would have to be
handled by the gcc driver, say by invoking jc1 and as multiple times.
I don't think this can be done purely in gcj.
It is almost certainly too late to get this in 4.0. I suppose you
could try though :-)
Tom