From: Lauri Kasanen Date: Wed, 10 Apr 2019 11:01:36 +0000 (+0300) Subject: Only for jumps, the lib uses named asm labels in branches X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2af76c7cffb08af3a6f7ca87c90132aa3e365f76;p=cc65 Only for jumps, the lib uses named asm labels in branches --- 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); }