diff options
| -rw-r--r-- | tccasm.c | 4 | ||||
| -rw-r--r-- | tests/asmtest.S | 5 |
2 files changed, 7 insertions, 2 deletions
@@ -481,7 +481,7 @@ static void asm_parse_directive(TCCState *s1) break; case TOK_ASM_globl: case TOK_ASM_global: - { + do { Sym *sym; next(); @@ -492,7 +492,7 @@ static void asm_parse_directive(TCCState *s1) } sym->type.t &= ~VT_STATIC; next(); - } + } while (tok == ','); break; case TOK_ASM_string: case TOK_ASM_ascii: diff --git a/tests/asmtest.S b/tests/asmtest.S index 3e34455..0ffb9e7 100644 --- a/tests/asmtest.S +++ b/tests/asmtest.S @@ -196,6 +196,11 @@ call *%eax call *0x1000 call func1 +.global L5,L6 + +L5: +L6: + lcall $0x100, $0x1000 jmp 0x1000 |
