(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
+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):
_Jv_Free (info);
info = next;
}
+ seen_subrs = NULL;
}
void copy (const state *copy, int max_stack, int max_locals,
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'.