This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Multiple file compilation patch
- To: Bryce McKinlay <bryce at albatross dot co dot nz>
- Subject: Re: Multiple file compilation patch
- From: Jeff Sturm <jsturm at one-point dot com>
- Date: Sun, 18 Mar 2001 10:51:39 -0500 (EST)
- cc: Per Bothner <per at bothner dot com>, java at gcc dot gnu dot org
On Sun, 18 Mar 2001, Bryce McKinlay wrote:
> > > $ gcj -c at/dms/classfile/*.java
> >
> > This case should work as a *multiple* compilations of a single .java
> > file each time, because there is no -o flag. I.e jc1 should be
> > invoked once per .java file. It seems to do so when I tried a test.
>
> Yes, you're right. I actually meant something like "gcj --shared
> at/dms/classfile/*.java -o libclassfile.so" I also figured out you can just
> omit the "-o" and trick it into using the old behaviour, then just rename
> the resulting a.out to whatever was wanted.
I'm finding that "gcj -c *.java" does the right thing but
"gcj -c *.class" dies miserably (it tries to name the object file after
the file list, among other things):
[jsturm@neptune testsuite]$ gcj -c G19990301_01.class
[jsturm@neptune testsuite]$ gcj -c foo.class
[jsturm@neptune testsuite]$ gcj -c G19990301_01.class foo.class
G19990301_01.java: In class `foo':
G19990301_01.java: In method `()':
G19990301_01.java:0: bad pc in exception_table
Jeff