fixed some label problems

This commit is contained in:
ceriel 1991-06-20 10:17:36 +00:00
parent 9f43986877
commit 7a1d1ce1c1
2 changed files with 3 additions and 2 deletions

View file

@ -1140,8 +1140,8 @@ lint_jump_stmt(idf)
dbg_lint_stack("lint_jump_stmt");
top_ls->ls_current->st_notreached = 1;
top_ls->ls_current->st_warned = 0;
if (idf->id_def)
idf->id_def->df_used = 1;
if (idf->id_label)
idf->id_label->df_used = 1;
}
lint_label()

View file

@ -30,6 +30,7 @@ enter_label(idf, defining)
error("redeclaration of label %s", idf->id_text);
}
else {
stack_idf(idf, stack_level_of(L_LOCAL));
def = new_def();
def->df_sc = LABEL;
idf->id_label = def;