GCJ fails with -O?
Jeff Sturm
jsturm@sigma6.com
Thu Apr 22 11:47:00 GMT 1999
I have a test case that seems to break the compiler. The Fcrypt.java
class is a port of Eric Young's fast crypt() routines to Java. It's
packed with bit manipulations... should be a good test for
gcj.
Compiling with no optimization works:
[jsturm@bangkok tmp]$ gcj --main=Fcrypt Fcrypt.java -o fcrypt
[jsturm@bangkok tmp]$ ./fcrypt abracadabra xy
xy..nHGb.whyc
Compiling with -O fails to link:
[jsturm@bangkok tmp]$ gcj -O --main=Fcrypt Fcrypt.java -o fcrypt
/tmp/ccWfcaaa.o: In function `Fcrypt::_003cclinit_003e(unsigned)':
/tmp/ccWfcaaa.o(.text+0x269): undefined reference to `LJv16'
collect2: ld returned 1 exit status
This is on Linux/x86 with the current gcj from CVS. I can provide
Fcrypt.java by email if someone wants to take a look (I think it's
subject to US export restrictions, or I'd post a link here).
--
Jeff Sturm
jsturm@sigma6.com
More information about the Java
mailing list