OSDN Git Service

2000-02-09 Andrew Haley <aph@cygnus.com>
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Feb 2000 20:38:02 +0000 (20:38 +0000)
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Feb 2000 20:38:02 +0000 (20:38 +0000)
        * decl.c (clear_binding_level): Remove excess initializer.
        (maybe_poplevels): Remove unused variable.
        (force_poplevels): Ditto.
        (struct binding_level): Add comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31870 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/decl.c

index 28cfbcc..b536e5e 100644 (file)
@@ -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.
index 5669b3f..b5416e4 100644 (file)
@@ -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",