--- Comment #1 from tromey at gcc dot gnu dot org 2006-05-24 14:56 ---
Created an attachment (id=11504)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11504&action=view)
failing class file
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27756
--- Comment #2 from aph at gcc dot gnu dot org 2006-05-25 10:02 ---
Created an attachment (id=11512)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11512&action=view)
Patch
Try this. If it works for you I'll check it in.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27756
--- Comment #3 from aph at gcc dot gnu dot org 2006-05-25 10:12 ---
This is caused by ecj generating non-nested variable scopes.
In Method name:"seekTypesInBinaryPackage":
slot#13: name: i, type: int (pc: 254 length: 82)
slot#15: name: elementName, type: java.lang.String (pc: 240
--- Comment #4 from tromey at gcc dot gnu dot org 2006-05-25 22:53 ---
Thanks Andrew. With this I'm able to BC compile ecj again.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27756
--- Comment #5 from aph at gcc dot gnu dot org 2006-05-26 10:20 ---
I have found the real cause of these weird non-nested variable ranges.
It's because ecj reorganizes for loops in this way:
for (a; b; c)
{
foo;
}
becomes
goto barf;
do
{
foo;
c;
barf:
a;
if (!b)
goto x;
--- Comment #6 from aph at gcc dot gnu dot org 2006-05-26 10:23 ---
Err, I mean:
a;
goto barf;
do
{
foo;
c;
barf:
if (!b)
goto x;
} forever;
x:
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27756
--- Comment #7 from aph at gcc dot gnu dot org 2006-05-26 13:52 ---
Subject: Bug 27756
Author: aph
Date: Fri May 26 13:52:18 2006
New Revision: 114131
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114131
Log:
2006-05-25 Andrew Haley <[EMAIL PROTECTED]>
PR java/27756
--- Comment #8 from aph at gcc dot gnu dot org 2006-05-26 13:54 ---
What am I supposed to write here, anyway? It's fixed because I fixed it.
--
aph at gcc dot gnu dot org changed:
What|Removed |Added
---