diff options
| author | Al Viro <viro@ftp.linux.org.uk> | 2009-03-11 07:08:25 +0000 |
|---|---|---|
| committer | Christopher Li <sparse@chrisli.org> | 2009-07-18 05:30:09 +0000 |
| commit | 3829c4d8b097776e6b3472290a9fae08a705ab7a (patch) | |
| tree | b2218b8e8294de1414820fb62c117274f609f233 /gdbhelpers | |
| parent | 8de386390c2028ccaea4ac7e39aa915b6ec6bf94 (diff) | |
| download | sparse-dev-3829c4d8b097776e6b3472290a9fae08a705ab7a.tar.gz | |
Don't mix storage class bits with ctype->modifiers while parsing type
Keep storage class (and "is it inline") explicitly in decl_state;
translate to modifiers only when we are done with parsing. That
avoids the need to separate MOD_STORAGE bits while constructing
the type (e.g. in alloc_indirect_symbol(), etc.). It also allows
to get rid of MOD_FORCE for good - instead of passing it to typename()
we pass an int * and let typename() tell whether we'd got a force-cast.
Indication of force-cast never makes it into the modifier bits at all.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Christopher Li <chrisl@hera.kernel.org>
Diffstat (limited to 'gdbhelpers')
| -rw-r--r-- | gdbhelpers | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -158,9 +158,6 @@ define gdb_show_ctype if ($arg0->modifiers & MOD_USERTYPE) printf "MOD_USERTYPE " end - if ($arg0->modifiers & MOD_FORCE) - printf "MOD_FORCE " - end if ($arg0->modifiers & MOD_EXPLICITLY_SIGNED) printf "MOD_EXPLICITLY_SIGNED" end |
