aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Bertogli <albertito@blitiri.com.ar>2009-05-16 15:36:58 +0000
committerChristopher Li <sparse@chrisli.org>2009-07-18 05:30:10 +0000
commit5d4c7fc7cc88175c1732313af4911cf494b14f89 (patch)
tree97319ca53cae2b5ceac9f9b88d5dc10721445956 /symbol.h
parentPrint an error if typeof() lacks an argument (diff)
downloadsparse-5d4c7fc7cc88175c1732313af4911cf494b14f89.tar.gz
sparse-5d4c7fc7cc88175c1732313af4911cf494b14f89.tar.bz2
sparse-5d4c7fc7cc88175c1732313af4911cf494b14f89.zip
Support the __thread storage class
GCC supports a __thread storage class, used to indicate thread-local storage. It may be used alone, or with extern or static. This patch makes sparse aware of it, and check those restrictions. Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar> Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'symbol.h')
-rw-r--r--symbol.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/symbol.h b/symbol.h
index da4d64a..751dec1 100644
--- a/symbol.h
+++ b/symbol.h
@@ -93,7 +93,7 @@ struct decl_state {
struct ctype ctype;
struct ident **ident;
struct symbol_op *mode;
- unsigned char prefer_abstract, is_inline, storage_class;
+ unsigned char prefer_abstract, is_inline, storage_class, is_tls;
};
struct symbol_op {
@@ -199,6 +199,7 @@ struct symbol {
#define MOD_TYPEDEF 0x1000
+#define MOD_TLS 0x20000
#define MOD_INLINE 0x40000
#define MOD_ADDRESSABLE 0x80000