History

both .globl and .global directives are accepted by as

bellard committed 22 years ago

Commit 8da60271 parent c1265d13 files · +4 −0Browse files

Unified · Split

3 files
  1. tcc-doc.texi +2 −0
  2. tccasm.c +1 −0
  3. tcctok.h +1 −0
tcc-doc.texi+2−0
@@ -603,6 +603,7 @@ They can be defined several times in the same source. Use 'b' · 602 unmodified lines
603603 @cindex .long
604604 @cindex .string
605605 @cindex .globl
606+@cindex .global
606607 @cindex .section
607608 @cindex .text
608609 @cindex .data
@@ -621,6 +622,7 @@ supported: · 12 unmodified lines
621622 @item .int value1[,value2...]
622623 @item .long value1[,value2...]
623624 @item .string string
625+@item .globl symbol
624626 @item .global symbol
625627 @item .section section
626628 @item .text
tccasm.c+1−0
@@ -362,6 +362,7 @@ static void asm_parse_directive(TCCState *s1) · 361 unmodified lines
362362 }
363363 break;
364364 case TOK_ASM_globl:
365+ case TOK_ASM_global:
365366 {
366367 Sym *sym;
367368
tcctok.h+1−0
@@ -163,6 +163,7 @@ · 162 unmodified lines
163163 DEF_ASM(space)
164164 DEF_ASM(string)
165165 DEF_ASM(globl)
166+ DEF_ASM(global)
166167 DEF_ASM(text)
167168 DEF_ASM(data)
168169 DEF_ASM(bss)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t