Unified · Split
| @@ -481,7 +481,7 @@ static void asm_parse_directive(TCCState *s1) · 480 unmodified lines | ||
| 481 | 481 | break; |
| 482 | 482 | case TOK_ASM_globl: |
| 483 | 483 | case TOK_ASM_global: |
| 484 | − { | |
| 484 | + do { | |
| 485 | 485 | Sym *sym; |
| 486 | 486 | |
| 487 | 487 | next(); |
| @@ -492,7 +492,7 @@ static void asm_parse_directive(TCCState *s1) · 4 unmodified lines | ||
| 492 | 492 | } |
| 493 | 493 | sym->type.t &= ~VT_STATIC; |
| 494 | 494 | next(); |
| 495 | − } | |
| 495 | + } while (tok == ','); | |
| 496 | 496 | break; |
| 497 | 497 | case TOK_ASM_string: |
| 498 | 498 | case TOK_ASM_ascii: |
| @@ -196,6 +196,11 @@ call *%eax · 195 unmodified lines | ||
| 196 | 196 | call *0x1000 |
| 197 | 197 | call func1 |
| 198 | 198 | |
| 199 | +.global L5,L6 | |
| 200 | + | |
| 201 | +L5: | |
| 202 | +L6: | |
| 203 | + | |
| 199 | 204 | lcall $0x100, $0x1000 |
| 200 | 205 | |
| 201 | 206 | jmp 0x1000 |