diff options
author | Andrew Haley <aph@cygnus.com> | 2000-02-09 20:38:02 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2000-02-09 20:38:02 +0000 |
commit | 71600a4ae0a31aee8f1471a75b41231f902633ce (patch) | |
tree | ac92f55a5467c8fc590e5a815db88ee3d4391dc0 /gcc | |
parent | d38c8dab7071781d79e1c432b8e06c26f8bb9f93 (diff) | |
download | gcc-71600a4ae0a31aee8f1471a75b41231f902633ce.zip gcc-71600a4ae0a31aee8f1471a75b41231f902633ce.tar.gz gcc-71600a4ae0a31aee8f1471a75b41231f902633ce.tar.bz2 |
decl.c (clear_binding_level): Remove excess initializer.
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.
From-SVN: r31870
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/java/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/java/decl.c | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 28cfbcc..b536e5e 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,10 @@ +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. + 2000-01-25 Andrew Haley <aph@cygnus.com> * java-except.h (struct eh_range): Add `expanded' field. diff --git a/gcc/java/decl.c b/gcc/java/decl.c index 5669b3f..b5416e4 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", |