This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: switch constant issue
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Andrew Haley <aph at redhat dot com>, steve <steve at netfuel dot com>, <java at gcc dot gnu dot org>
- Date: Mon, 9 Jun 2003 14:11:17 -0400 (EDT)
- Subject: Re: switch constant issue
On 9 Jun 2003, Tom Tromey wrote:
> Jeff, I think my patch won't affect Steve's problem. That patch was
> for a different case, where we would inline a non-{int,string}
> constant incorrectly (causing link errors, as I recall). Steve is
> seeing the opposite: we aren't inlining an int constant that we
> should.
Well, see the prior patch then:
* class.c (build_static_field_ref): Check FIELD_FINAL.
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/class.c.diff?r1=1.140&r2=1.141&f=h
It's been awhile, but I think that was just the failure this patch
intended to fix.
No way to know for sure unless Steve tries his code on mainline. None of
these patches are in 3.3.
Jeff