From 2af76c7cffb08af3a6f7ca87c90132aa3e365f76 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Wed, 10 Apr 2019 14:01:36 +0300 Subject: [PATCH] Only for jumps, the lib uses named asm labels in branches --- src/cc65/codeseg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc65/codeseg.c b/src/cc65/codeseg.c index c27d105c9..297d09c4f 100644 --- a/src/cc65/codeseg.c +++ b/src/cc65/codeseg.c @@ -429,7 +429,7 @@ static CodeEntry* ParseInsn (CodeSeg* S, LineInfo* LI, const char* L) /* If we don't have the label, it's a forward ref - create it unless ** it's an external function. */ - if (Label == 0 && IsLocalLabelName(Arg)) { + if (Label == 0 && (OPC->OPC != OP65_JMP || IsLocalLabelName(Arg)) ) { /* Generate a new label */ Label = CS_NewCodeLabel (S, Arg, Hash); } -- 2.39.2