This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: build error (2)
- To: Oskar Liljeblad <osk at hem dot passagen dot se>
- Subject: Re: build error (2)
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Thu, 30 Nov 2000 14:06:03 -0800 (PST)
- Cc: java-discuss at sourceware dot cygnus dot com
- References: <20001130225716.A23994@oskar>
- Reply-To: apbianco at cygnus dot com
Oskar Liljeblad writes:
> Ok, I downloaded & built the latest gcj (which contained the patch
> that Alexandre recommended). This time it is failing on
You've been building gcj with a previously installed egcs which seems
to miscompile one function. Rebuild gcj with the default compiler or
apply this work around patch to the compiler (by reading it you'll
understand that I think it's about egcs miscompiling gcj.)
I'd like to find some time to investigate this thing. It's been biting
a lot of people lately.
./A
Index: parse.y
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/parse.y,v
retrieving revision 1.230
diff -u -p -r1.230 parse.y
--- parse.y 2000/11/23 06:04:16 1.230
+++ parse.y 2000/11/30 22:04:45
@@ -7164,7 +7164,8 @@ static void
end_artificial_method_body (mdecl)
tree mdecl;
{
- BLOCK_EXPR_BODY (DECL_FUNCTION_BODY (mdecl)) = exit_block ();
+ tree b = exit_block ();
+ BLOCK_EXPR_BODY (DECL_FUNCTION_BODY (mdecl)) = b;
exit_block ();
}