The libjava testsuite gets a FAIL in the gij PR12350 test. I traced this to a SIGBUS in a yet to be determined location in verify.cc. When verify.cc is compiled with -O0 the test PASSes.
This is with the svn trunk -r118192. I am fairly certain that the same problem exists in the 4.2 branch as I am getting the same FAILures there, but have not investigated in detail. I know this is kind of vague. I will try to get a proper reduced testcase soon. Unfortunately the failure mode is such that it is impossible to get a backtrace at the point of the SIGBUS. The PC is getting set to a point in unmapped memory evidently after doing a 'jr v1' which is kind of a wierd thing to be doing. -- Summary: Wrong code when compiling libjava/verify.cc at -O2 Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: daney at gcc dot gnu dot org GCC build triplet: mipsel-linux-gnu GCC host triplet: mipsel-linux-gnu GCC target triplet: mipsel-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29721