From f43fafc68071ff646a5f1b0f21f0641e5cd085fa Mon Sep 17 00:00:00 2001 From: Joe Soroka Date: Thu, 20 Jan 2011 02:00:50 -0800 Subject: accept multiple comma separated symbols for .globl/.global directives, like gas does --- tccasm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tccasm.c') diff --git a/tccasm.c b/tccasm.c index 6de2b07..1064ea6 100644 --- a/tccasm.c +++ b/tccasm.c @@ -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: -- cgit v1.3.1