aboutsummaryrefslogtreecommitdiff
path: root/tccasm.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccasm.c')
-rw-r--r--tccasm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tccasm.c b/tccasm.c
index 5702556..a1bd28c 100644
--- a/tccasm.c
+++ b/tccasm.c
@@ -691,8 +691,11 @@ static int tcc_assemble_internal(TCCState *s1, int do_preprocess)
opcode = tok;
next();
if (tok == ':') {
+ char * label = get_tok_str(opcode, NULL);
+
/* new label */
- asm_new_label(s1, opcode, 0);
+ asm_new_label(s1, opcode,
+ (label && label[0] == '.' && label[1] == 'L') ? 1 : 0);
next();
goto redo;
} else if (tok == '=') {