aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-09-06 12:17:59 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:03:09 -0700
commitdf7cd6f2c0ff73fe1071b768f6f8dd40ac0ce0e4 (patch)
tree39b2867c712539c5d2468dbe758526dd7af0ee56 /symbol.c
parentRemove "match_string_ident" now that nothing uses it. (diff)
downloadsparse-df7cd6f2c0ff73fe1071b768f6f8dd40ac0ce0e4.tar.gz
sparse-df7cd6f2c0ff73fe1071b768f6f8dd40ac0ce0e4.tar.bz2
sparse-df7cd6f2c0ff73fe1071b768f6f8dd40ac0ce0e4.zip
We need to initialize the type of the fundamental base types.
It _used_ to be initialized to zero (SYM_BASETYPE) automatically, but Chris added SYM_PREPROCESSOR at the beginning, without realizing that there was a magic reason for SYM_BASETYPE being zero. Rather than just re-instate the magic, let's just do the sane thing instead and initialize the base types properly.
Diffstat (limited to 'symbol.c')
-rw-r--r--symbol.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/symbol.c b/symbol.c
index d4d0ccb..9057a35 100644
--- a/symbol.c
+++ b/symbol.c
@@ -572,6 +572,7 @@ void init_ctype(void)
if (alignment > maxalign)
alignment = maxalign;
+ sym->type = SYM_BASETYPE;
sym->bit_size = bit_size;
sym->ctype.alignment = alignment;
sym->ctype.base_type = ctype->base_type;