mirror of
https://github.com/cc65/cc65.git
synced 2024-11-19 06:31:31 +00:00
Fix jmp-callax.c bug
This commit is contained in:
parent
f29220be1b
commit
c3d809b129
@ -426,8 +426,10 @@ static CodeEntry* ParseInsn (CodeSeg* S, LineInfo* LI, const char* L)
|
|||||||
unsigned Hash = HashStr (Arg) % CS_LABEL_HASH_SIZE;
|
unsigned Hash = HashStr (Arg) % CS_LABEL_HASH_SIZE;
|
||||||
Label = CS_FindLabel (S, Arg, Hash);
|
Label = CS_FindLabel (S, Arg, Hash);
|
||||||
|
|
||||||
/* If we don't have the label, it's a forward ref - create it */
|
/* If we don't have the label, it's a forward ref - create it unless
|
||||||
if (Label == 0) {
|
** it's an external function.
|
||||||
|
*/
|
||||||
|
if (Label == 0 && IsLocalLabelName(Arg)) {
|
||||||
/* Generate a new label */
|
/* Generate a new label */
|
||||||
Label = CS_NewCodeLabel (S, Arg, Hash);
|
Label = CS_NewCodeLabel (S, Arg, Hash);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user