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