------- Comment #8 from rguenther at suse dot de 2008-03-11 10:03 ------- Subject: Re: [4.3/4.4 Regression] Rejects JArray<jboolean>
On Tue, 11 Mar 2008, aph at gcc dot gnu dot org wrote: > ------- Comment #7 from aph at gcc dot gnu dot org 2008-03-11 09:58 ------- > Okay, but I don't quite understand this final sentence: > > "Still with C++ now reducing operations on bit-precision types > you get different answers for the above case now." > > What exactly do you mean by this? With gcc 4.2 jboolean j = 2; if (j) ... was in some cases compiled to assign true to j. Starting with gcc 4.3 all jboolean values will consistently behave as if you'd write j & 1. See the libjava fix 2008-01-18 Alexandre Oliva <[EMAIL PROTECTED]> PR c++/33887 * link.cc (_Jv_Linker::prepare_constant_time_tables): has_interfaces is boolean, treat it as such. that corrected one instance in libjava that we 'miscompiled' after this change. Richard. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35469