This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: more bootstrap problems


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 ();
 }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]