mirror of
https://github.com/frida/tinycc
synced 2024-12-25 06:26:49 +03:00
tccpp: Allow local labels to start with a dot
-- By by ... Detlef
This commit is contained in:
parent
9ff7a0bc98
commit
f740485a5a
5
tccasm.c
5
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 == '=') {
|
||||
|
Loading…
Reference in New Issue
Block a user