changeset 302:464079a88a2f

[project @ 2004-10-02 14:01:26 by bellard] both .globl and .global directives are accepted by as
author bellard
date Sat, 02 Oct 2004 14:01:26 +0000
parents 59f71fb87bd3
children fd63bae301a5
files tcc-doc.texi tccasm.c tcctok.h
diffstat 3 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tcc-doc.texi	Sat Oct 02 13:50:47 2004 +0000
+++ b/tcc-doc.texi	Sat Oct 02 14:01:26 2004 +0000
@@ -603,6 +603,7 @@
 @cindex .long
 @cindex .string
 @cindex .globl
+@cindex .global
 @cindex .section
 @cindex .text
 @cindex .data
@@ -621,6 +622,7 @@
 @item .int value1[,value2...]
 @item .long value1[,value2...]
 @item .string string
+@item .globl symbol
 @item .global symbol
 @item .section section
 @item .text
--- a/tccasm.c	Sat Oct 02 13:50:47 2004 +0000
+++ b/tccasm.c	Sat Oct 02 14:01:26 2004 +0000
@@ -362,6 +362,7 @@
         }
         break;
     case TOK_ASM_globl:
+    case TOK_ASM_global:
 	{ 
             Sym *sym;
 
--- a/tcctok.h	Sat Oct 02 13:50:47 2004 +0000
+++ b/tcctok.h	Sat Oct 02 14:01:26 2004 +0000
@@ -163,6 +163,7 @@
  DEF_ASM(space)
  DEF_ASM(string)
  DEF_ASM(globl)
+ DEF_ASM(global)
  DEF_ASM(text)
  DEF_ASM(data)
  DEF_ASM(bss)