1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-26 17:36:57 +00:00

Merge pull request #137 from spiro-trikaliotis/notemittinglabels-alancox

Fix for: cc65 forgetting to emit labels (Alan Cox)
This commit is contained in:
Oliver Schmidt 2014-10-14 15:13:29 +02:00
commit 137041c59f

View File

@ -268,7 +268,9 @@ void EnterFunctionLevel (void)
TagTab = S;
/* Create and assign a new label table */
LabelTab = NewSymTable (SYMTAB_SIZE_LABEL);
S = NewSymTable (SYMTAB_SIZE_LABEL);
S->PrevTab = LabelTab;
LabelTab = S;
}
@ -286,6 +288,7 @@ void RememberFunctionLevel (struct FuncDesc* F)
/* Don't delete the tables */
SymTab = SymTab->PrevTab;
TagTab = TagTab->PrevTab;
LabelTab = LabelTab->PrevTab;
}