------- Comment #6 from rguenther at suse dot de 2008-03-11 09:28 ------- Subject: Re: [4.3/4.4 Regression] Rejects JArray<jboolean>
On Mon, 10 Mar 2008, aph at gcc dot gnu dot org wrote: > ------- Comment #5 from aph at gcc dot gnu dot org 2008-03-10 19:06 ------- > No, it will not generate the wrong code for > > jboolean i = 1; > i += 2; > > You are wrong to assume that jboolean must behave in the same way as boolean. > It's a Java type, not a C++ type. > > Having exact conformance with C++ boolean is not important, having arrays > of boolean compile is. > > The right fix *is* just make jboolean make_unsigned_type (1) on all > targets. So you can just revert 2008-02-04 Richard Guenther <[EMAIL PROTECTED]> PR java/35035 * decl.c (record_builtin_java_type): Make jboolean a integer type again where its mode doesn't match that of bool. 2008-01-25 Richard Guenther <[EMAIL PROTECTED]> PR c++/33887 * decl.c (record_builtin_java_type): Make __java_boolean a variant of bool. * typeck.c (structural_comptypes): Move TYPE_FOR_JAVA check after TYPE_MAIN_VARIANT check. then. Still with C++ now reducing operations on bit-precision types you get different answers for the above case now. Richard. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35469