switch constant issue

Andrew Haley aph@redhat.com
Mon Jun 9 17:36:00 GMT 2003


Jeff Sturm writes:
 > On Mon, 9 Jun 2003, Andrew Haley wrote:
 > > > If this is a bug I will submit it.
 > >
 > > Looks like a bug to me. I guess no-assume-compiled is deferring the
 > > resolution of this constant to runtime, and this conflicts with the
 > > compiler's requirement that case labels be constant. I'm not sure
 > > about the best way to resolve this. Please submit the bug.
 > 
 > I think it was fixed in:
 > 
 > 2003年01月24日 Tom Tromey <tromey@redhat.com>
 > 
 > * class.c (build_static_field_ref): Only a String or numeric field
 > can fold to a constant.
 > 
 > http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/class.c.diff?r1=1.150&r2=1.151&f=h
I guess this is OK, but I'm not sure. It does rather break
-fno-assume-compiled in that the constant uses early binding, so we
might up with a different value for a constant that the one in its
definition.
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /