This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


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

Re: gcj build problems (again)



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)

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