diff options
| author | Joe Soroka <gits@joesoroka.com> | 2011-01-20 02:00:50 -0800 |
|---|---|---|
| committer | Joe Soroka <gits@joesoroka.com> | 2011-01-20 02:00:50 -0800 |
| commit | f43fafc68071ff646a5f1b0f21f0641e5cd085fa (patch) | |
| tree | 1195c330523c90eac4ee6d094a64fd8564a72dff /tccasm.c | |
| parent | 0a50e6c933cb3d470494c203e90808cef6873b06 (diff) | |
| download | tinycc-f43fafc68071ff646a5f1b0f21f0641e5cd085fa.tar.gz tinycc-f43fafc68071ff646a5f1b0f21f0641e5cd085fa.tar.bz2 | |
accept multiple comma separated symbols for .globl/.global directives, like gas does
Diffstat (limited to 'tccasm.c')
| -rw-r--r-- | tccasm.c | 4 |
1 files changed, 2 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: |
