compiler segfault.
Antonio Ake
ake@ecn.purdue.edu
Sun Oct 14 22:17:00 GMT 2001
I wonder. What happend if you change to -O1 or -00?
On 2001年10月14日, Olivier wrote:
> GCJ (today's cvs head) segfault when compiling the following code:
>>>> public class Speed
> {
> public static final void main(String[] args) {
> try {
> int iterations = 1000000;
> int blocksize = (int)System.currentTimeMillis();
> long elapsed = -System.currentTimeMillis();
>> float secs = (elapsed > 1) ? (float) elapsed : 1;
> float speed = (float) iterations * blocksize;
>> elapsed += System.currentTimeMillis();
> secs = (elapsed > 1) ? (float) elapsed : 1;
>> speed = (float) blocksize * iterations;
>> System.out.println(speed);
>> } catch (Exception x) {
> x.printStackTrace(System.err);
> }
> }
> }
>>>> tournesol$ gcj --classpath=/usr/local/gcc/share/libgcj.jar -O2 -c -o Speed.o Speed.java
> Speed.java: In class `Speed':
> Speed.java: In method `Speed.main(java.lang.String[])':
> Speed.java:1: Internal compiler error in fixup_abnormal_edges, at reload1.c:9478Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
>>> Trying to simplify the code any futher fixes the problem!!!
>> It is on Debian Sid, x86 with gcj compiled as follow:
>> export CFLAGS="-O2 -funroll-loops"
> export GCJFLAGS="-O2 -funroll-loops -fkeep-inline-functions"
> ~/gcc/configure --prefix=/usr/local/gcc --enable-shared --enable-haifa --enable-threads=posix --enable-languages=c++,java --enable-java-gc=boehm
>> Does anyone get the same behavior?
>> Olivier
>> --
> ----------------------------------------------------------------------
> Olivier Louchart-Fletcher
> Email: olivier@zipworld.com.au
>
More information about the Java
mailing list