fixed some label problems
This commit is contained in:
parent
9f43986877
commit
7a1d1ce1c1
|
@ -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()
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue