From db560e9439deaef3c15aa353828fd4d98a1b5f8c Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Sat, 5 Feb 2011 02:31:45 +0100 Subject: Revert "Implement C99 Variable Length Arrays" This reverts commit a5a50eaafeea0d3ca47bc8fb6baf983743470c60. --- tcc-doc.texi | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'tcc-doc.texi') diff --git a/tcc-doc.texi b/tcc-doc.texi index 2c1ac3f..14827aa 100644 --- a/tcc-doc.texi +++ b/tcc-doc.texi @@ -929,11 +929,7 @@ be the best solution. #define VT_BTYPE 0x000f /* mask for basic type */ #define VT_UNSIGNED 0x0010 /* unsigned type */ #define VT_ARRAY 0x0020 /* array type (also has VT_PTR) */ -#define VT_VLA 0x10000 /* VLA type (also has VT_PTR and VT_ARRAY) */ #define VT_BITFIELD 0x0040 /* bitfield modifier */ -#define VT_CONSTANT 0x0800 /* const modifier */ -#define VT_VOLATILE 0x1000 /* volatile modifier */ -#define VT_SIGNED 0x2000 /* signed type */ #define VT_STRUCT_SHIFT 18 /* structure/enum name shift (14 bits left) */ @end example @@ -946,8 +942,7 @@ The @code{VT_UNSIGNED} flag can be set for chars, shorts, ints and long longs. Arrays are considered as pointers @code{VT_PTR} with the flag -@code{VT_ARRAY} set. Variable length arrays are considered as special -arrays and therefore also have flag @code{VT_VLA} set. +@code{VT_ARRAY} set. The @code{VT_BITFIELD} flag can be set for chars, shorts, ints and long longs. If it is set, then the bitfield position is stored from bits @@ -963,10 +958,6 @@ integer: #define VT_EXTERN 0x00000080 /* extern definition */ #define VT_STATIC 0x00000100 /* static variable */ #define VT_TYPEDEF 0x00000200 /* typedef definition */ -#define VT_INLINE 0x00000400 /* inline definition */ -#define VT_IMPORT 0x00004000 /* win32: extern data imported from dll */ -#define VT_EXPORT 0x00008000 /* win32: data exported from dll */ -#define VT_WEAK 0x00010000 /* win32: data exported from dll */ @end example @section Symbols @@ -978,10 +969,7 @@ contains @code{Sym} structures. an idenfier is also a token, so a string is never necessary to store it). @code{Sym.t} gives the type of the symbol. @code{Sym.r} is usually the register in which the corresponding variable is stored. @code{Sym.c} is -usually a constant associated to the symbol like its address for normal -symbols, and the number of entries for symbols representing arrays. -Variable length arrays use @code{Sym.r} instead, which is a pointer to -a @code{SValue} holding its runtime size. +usually a constant associated to the symbol. Four main symbol stacks are defined: -- cgit v1.3.1