aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/decl.c
diff options
context:
space:
mode:
authorAndrew Haley <aph@cygnus.com>2000-02-09 20:38:02 +0000
committerAndrew Haley <aph@cygnus.com>2000-02-09 20:38:02 +0000
commit3c14719aa1a5abc93c0ebf5cf054ed20da187c4f (patch)
treeac92f55a5467c8fc590e5a815db88ee3d4391dc0 /gcc/java/decl.c
parent635aea4bbf9ccd755662b9206bc97abb14e902db (diff)
2000-02-09 Andrew Haley <aph@cygnus.com>
* decl.c (clear_binding_level): Remove excess initializer. (maybe_poplevels): Remove unused variable. (force_poplevels): Ditto. (struct binding_level): Add comment. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@31870 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/decl.c')
-rw-r--r--gcc/java/decl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c
index 5669b3fc891..b5416e49b7e 100644
--- a/gcc/java/decl.c
+++ b/gcc/java/decl.c
@@ -221,6 +221,7 @@ struct binding_level
/* The bytecode PC that marks the end of this level. */
int end_pc;
+ /* The bytecode PC that marks the start of this level. */
int start_pc;
#if defined(DEBUG_JAVA_BINDING_LEVELS)
@@ -253,7 +254,7 @@ static struct binding_level *global_binding_level;
static struct binding_level clear_binding_level
= {NULL_TREE, NULL_TREE, NULL_TREE, NULL_TREE,
- NULL_BINDING_LEVEL, 0, 0, 0, 0, LARGEST_PC, 0, 0};
+ NULL_BINDING_LEVEL, 0, 0, 0, 0, LARGEST_PC, 0};
#if 0
/* A list (chain of TREE_LIST nodes) of all LABEL_DECLs in the function
@@ -1443,7 +1444,6 @@ maybe_poplevels (pc)
while (current_binding_level->end_pc <= pc)
{
- tree decls = getdecls ();
expand_end_bindings (getdecls (), 1, 0);
maybe_end_try (current_binding_level->start_pc, pc);
poplevel (1, 0, 0);
@@ -1462,7 +1462,6 @@ force_poplevels (start_pc)
{
while (current_binding_level->start_pc > start_pc)
{
- tree decls = getdecls ();
if (pedantic && current_binding_level->start_pc > start_pc)
warning_with_decl (current_function_decl,
"In %s: overlapped variable and exception ranges at %d",