java/decl.c patch for clear_binding_level

Jeff Sturm jsturm@one-point.com
Sat Mar 17 22:22:00 GMT 2001


On 17 Mar 2001, Per Bothner wrote:
> I just did a libjava 'make check' and am finding that almost
> all bytecode compilation tests are failing, with the compiler
> crashing.

Yep.  The bytecode compiler is completely broken on the trunk.  This seems
to fix it:

2001-03-18  Jeff Sturm  <jsturm@one-point.com>

	* decl.c: Use PARAMS macro in function declaration.
	(clear_binding_level): Remove excess initializer.

Index: decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/decl.c,v
retrieving revision 1.93
diff -u -p -r1.93 decl.c
--- decl.c	2001/03/16 05:31:51	1.93
+++ decl.c	2001/03/18 06:07:30
@@ -40,7 +40,7 @@ The Free Software Foundation is independ
 #include "ggc.h"
 
 #if defined (DEBUG_JAVA_BINDING_LEVELS)
-extern void indent PROTO((void));
+extern void indent PARAMS ((void));
 #endif
 
 static tree push_jvm_slot PARAMS ((int, tree));
@@ -311,7 +311,7 @@ static struct binding_level *global_bind
 
 static struct binding_level clear_binding_level
   = {NULL_TREE, NULL_TREE, NULL_TREE, NULL_TREE,
-       NULL_BINDING_LEVEL, 0, LARGEST_PC};
+       NULL_BINDING_LEVEL, LARGEST_PC};
 
 #if 0
 /* A list (chain of TREE_LIST nodes) of all LABEL_DECLs in the function



More information about the Java-patches mailing list