This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: java/decl.c patch for clear_binding_level
- To: Per Bothner <per at bothner dot com>
- Subject: Re: java/decl.c patch for clear_binding_level
- From: Jeff Sturm <jsturm at one-point dot com>
- Date: Sun, 18 Mar 2001 01:20:26 -0500 (EST)
- cc: Zack Weinberg <zackw at Stanford dot EDU>, gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
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