OSDN Git Service

* verify.cc (state::clean_subrs): Clear seen_subrs.
authorjsturm <jsturm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Dec 2003 03:42:40 +0000 (03:42 +0000)
committerjsturm <jsturm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Dec 2003 03:42:40 +0000 (03:42 +0000)
(state::copy): Walk seen_subrs from copy, not `this'.
Don't clear seen_subrs.

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

libjava/ChangeLog
libjava/verify.cc

index 32ff83c..a60d6cd 100644 (file)
@@ -1,3 +1,9 @@
+2003-12-01  Jeff Sturm  <jsturm@one-point.com>
+
+       * verify.cc (state::clean_subrs): Clear seen_subrs.
+       (state::copy): Walk seen_subrs from copy, not `this'.
+       Don't clear seen_subrs.
+
 2003-12-01  Kim Ho <kho@redhat.com>
 
        * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (create):
index 34583bd..e085938 100644 (file)
@@ -1010,6 +1010,7 @@ private:
          _Jv_Free (info);
          info = next;
        }
+      seen_subrs = NULL;
     }
 
     void copy (const state *copy, int max_stack, int max_locals,
@@ -1035,11 +1036,10 @@ private:
       clean_subrs ();
       if (copy->seen_subrs)
        {
-         for (subr_info *info = seen_subrs; info != NULL; info = info->next)
+         for (subr_info *info = copy->seen_subrs;
+              info != NULL; info = info->next)
            add_subr (info->pc);
        }
-      else
-       seen_subrs = NULL;
 
       this_type = copy->this_type;
       // Don't modify `next'.