fixed some label problems
This commit is contained in:
parent
478d7e56e1
commit
cdf50398c1
@ -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…
x
Reference in New Issue
Block a user