diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-09-06 12:17:59 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:03:09 -0700 |
commit | df7cd6f2c0ff73fe1071b768f6f8dd40ac0ce0e4 (patch) | |
tree | 39b2867c712539c5d2468dbe758526dd7af0ee56 /symbol.c | |
parent | Remove "match_string_ident" now that nothing uses it. (diff) | |
download | sparse-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |