With a bootstrap build of the 4.2 branch jc1 gets SIGSEGV compiling newarray_overflow.java from the java testsuite.
This is the command to reproduce: ./jc1 -fclasspath=../mipsel-unknown-linux-gnu/libjava/libgcj-4.3.0.jar ../../gcc/libjava/testsuite/libjava.lang/newarray_overflow.java -fhash-synchronization -fno-use-divide-subroutine -fuse-boehm-gc -fnon-call-exceptions -fkeep-inline-functions -quiet -dumpbase newarray_overflow.java -march=mips32 -msoft-float -mno-shared -auxbase newarray_overflow -g1 -version -o /junk/newarray_overflow.s If I recompile java/typeck.c with -O0 there is no SIGSEGV The same thing on the trunk (4.3) except 'internal compiler error: tree check' instead of SIGSEGV. A cross compiler built on i686-pc-linux-gnu does not have the problem. Looking at gcc-testresults leads me to think that this has been happening since at least June 2006. -- Summary: Wrong code compiling java/typeck.c Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: daney at gcc dot gnu dot org GCC build triplet: mipsel-unknown-linux-gnu GCC host triplet: mipsel-unknown-linux-gnu GCC target triplet: mipsel-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29805