aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/gdbhelpers
diff options
authorAl Viro <viro@ftp.linux.org.uk>2009-03-11 07:08:25 +0000
committerChristopher Li <sparse@chrisli.org>2009-07-18 05:30:09 +0000
commit3829c4d8b097776e6b3472290a9fae08a705ab7a (patch)
treeb2218b8e8294de1414820fb62c117274f609f233 /gdbhelpers
parent8de386390c2028ccaea4ac7e39aa915b6ec6bf94 (diff)
downloadsparse-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--gdbhelpers3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdbhelpers b/gdbhelpers
index e28417a7..db78d6cf 100644
--- a/gdbhelpers
+++ b/gdbhelpers
@@ -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