This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: more bootstrap problems
- Subject: Re: more bootstrap problems
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: 14 Dec 2000 11:53:06 -0800
- CC: gcc at gcc dot gnu dot org, mrs at windriver dot com
- References: <200012140311.TAA05244@kankakee.wrs.com>
Mike Stump <mrs@windriver.com> writes:
> java/lang/Boolean.java:25: Blank static final variable `FALSE' may
> not have be initialized.
This is a problem when you build a bootstrap compiler:
http://gcc.gnu.org/ml/gcc/2000-12/msg00403.html
This is known to fix the problem. I haven't yet had a chance to look
into why this appears to fix it (I found the generated assembly
language to be equivalent, at least on x86/Linux.)
./A
Index: parse.y
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/parse.y,v
retrieving revision 1.233
diff -u -p -r1.233 parse.y
--- parse.y 2000/12/06 20:02:02 1.233
+++ parse.y 2000/12/14 19:49:32
@@ -7200,7 +7200,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 ();
}