This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: patch/RFC/RFT detect ICE in libjava testsuite
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: janis187 at us dot ibm dot com (Janis Johnson)
- Cc: java-patches at gcc dot gnu dot org, ddaney at avtrex dot com
- Date: Fri, 12 May 2006 21:37:24 -0400 (EDT)
- Subject: Re: patch/RFC/RFT detect ICE in libjava testsuite
>
> This isn't fully tested yet, but I wanted to check on my approach for
> reporting internal compiler errors in the libjava testsuite. The test
> that David Daney added for me doesn't ICE on powerpc*-linux so I had
> to fake it by looking for another string, but it seems to work for
> libjava/testsuite/libjava.compile.
>
> I modified bytecompile_file so that instead of returning 0 for fail,
> 1 for success, it now returns 0 for success, 1 for failure, 2 for
> failure with "internal compiler error" in the compiler output. Since
> I don't have a libjava test that ICEs, I don't even know if that's the
> string gcj uses, or whether it's appropriate to look for it from
> bytecompile_file as well as from libjava_tcompile. Currently only
> lib/libjava.exp handles a 2 from bytecompile_file; other places that
> call it were modified to handle 0 instead of 1 for "pass", but it
> would be easy to change them to report ICEs as well.
here is a simple .java file that will ICE (and yes there is a PR about
this already):
class t{void f(void) {} }
----
put that one line into a file called t.java.
Thanks,
Andrew Pinski