This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: gcj build problems (again)
- To: java-discuss at sourceware dot cygnus dot com
- Subject: Re: gcj build problems (again)
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Mon, 13 Nov 2000 14:20:10 -0800 (PST)
- References: <20001113230615.A16812@strix.eductussyd.se>
- Reply-To: apbianco at cygnus dot com
Oskar Liljeblad writes:
> It seems that the problem is caused by the creation of an anonymous
> class (based on GetField) in the readFields method.
Out of curiosity, can you try to apply the seemingly stupid patch?
./A
Index: parse.y
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/parse.y,v
retrieving revision 1.216
diff -u -p -r1.216 parse.y
--- parse.y 2000/10/13 06:26:45 1.216
+++ parse.y 2000/11/13 22:19:08
@@ -7133,7 +7140,8 @@ static void
end_artificial_method_body (mdecl)
tree mdecl;
{
- BLOCK_EXPR_BODY (DECL_FUNCTION_BODY (mdecl)) = exit_block ();
+ tree m = exit_block ();
+ BLOCK_EXPR_BODY (DECL_FUNCTION_BODY (mdecl)) = m;
exit_block ();
}
@@ -8409,8 +8417,12 @@ build_dot_class_method_invocation (type)