This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Google Summer of Code
- From: Per Bothner <per at bothner dot com>
- To: kawa at sourceware dot org
- Date: Fri, 04 Apr 2014 12:49:25 -0700
- Subject: Re: Google Summer of Code
- Authentication-results: sourceware.org; auth=none
- References: <20140305094242 dot 349492d0 at debian-andrebask> <5316F956 dot 8040303 at gmail dot com> <20140305132208 dot 3081f8dc at debian-andrebask> <m2lhwo48vi dot fsf at gmail dot com> <5319088C dot 5060401 at bothner dot com> <7B118191-4144-4937-B679-89392D5463EE at theptrgroup dot com> <20140316012026 dot 4e0ebfef at debian-andrebask> <53269580 dot 8040205 at bothner dot com> <20140320204856 dot 5aa0b4d3 at debian-andrebask> <532BAA5F dot 3000606 at bothner dot com> <20140328121426 dot 74f3e92d at vaio> <5337BD0C dot 8030301 at bothner dot com> <20140403021150 dot 0dc0f6f4 at vaio>
On 04/02/2014 05:11 PM, Andrea Bernardini wrote:
I believe the problem is in this part of the SwitchState.finish()
method:
if (numCases <= 1)
{
....
}
Is this numCases==0? If so I don't see where the bug is.
Perhaps you could put System.println("line N SP:"+SP) on
various lines and see if you can figure out what the problem is.
I tried to modify this code to solve the problem, without success for
now (I get an "unimplemented bytecode" error at the end of execution,
not in compilation), but I noticed that removing this if-block entirely
and using the more general code that follows in the method, my code
compiles and runs correctly.
That suggests you're right - and Ill probably say "duh - that should
have been obvious" once we figure it out. It's almost certainly a
1-line fix.
--
--Per Bothner
per@bothner.com http://per.bothner.com/