diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2009-03-09 23:32:36 +0000 |
---|---|---|
committer | Christopher Li <sparse@chrisli.org> | 2009-07-18 05:30:09 +0000 |
commit | 47567023ae85e9c8428585da298e6d6613a86ab1 (patch) | |
tree | 6922e78595ef0c3636b83fc7930aa808ae61eeb3 /gdbhelpers | |
parent | Fix declaration_specifiers() handling of typedef name shadowed by NS_SYMBOL (diff) | |
download | sparse-47567023ae85e9c8428585da298e6d6613a86ab1.tar.gz sparse-47567023ae85e9c8428585da298e6d6613a86ab1.tar.bz2 sparse-47567023ae85e9c8428585da298e6d6613a86ab1.zip |
Fix __label__ handling
a) __label__ in gcc is not a type, it's a statement. Accepted in the beginning
of compound-statement, has form __label__ ident-list;
b) instead of crapping into NS_SYMBOL namespace (and consequent shadowing
issues), reassign the namespace to NS_LABEL after we'd bound it. We'll get
block scope and label namespace, i.e. what we get in gcc.
c) MOD_LABEL can be dropped now.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Christopher Li <sparse@chrisli.org>
Diffstat (limited to 'gdbhelpers')
-rw-r--r-- | gdbhelpers | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -146,9 +146,6 @@ define gdb_show_ctype if ($arg0->modifiers & MOD_TOPLEVEL) printf "MOD_TOPLEVEL " end - if ($arg0->modifiers & MOD_LABEL) - printf "MOD_LABEL " - end if ($arg0->modifiers & MOD_ASSIGNED) printf "MOD_ASSIGNED " end |