diff options
author | 2004-11-03 12:40:08 -0700 | |
---|---|---|
committer | 2005-04-07 21:03:56 -0700 | |
commit | 19da63710dc5cee1e0282e2f902753d8d1f64bdf (patch) | |
tree | 18636f980353e9c9622aad1d49ea7092ae7139be /compile-i386.c | |
parent | Make bitfield assignment type evaluation aware of the bit offset. (diff) | |
download | sparse-19da63710dc5cee1e0282e2f902753d8d1f64bdf.tar.gz sparse-19da63710dc5cee1e0282e2f902753d8d1f64bdf.tar.bz2 sparse-19da63710dc5cee1e0282e2f902753d8d1f64bdf.zip |
Remove "fieldwidth" member of struct symbol
It's always the same as bit_size now, and having it just confuses
things.
We now check whether we have examined a type by looking at the
"examined" bitfield, which allows us to set bit_size in the early
parsing phase.
Diffstat (limited to 'compile-i386.c')
-rw-r--r-- | compile-i386.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compile-i386.c b/compile-i386.c index a3e5825..eeda410 100644 --- a/compile-i386.c +++ b/compile-i386.c @@ -1776,9 +1776,7 @@ static void emit_switch_statement(struct statement *stmt) static void x86_struct_member(struct symbol *sym) { - printf("\t%s:%d:%ld at offset %ld", show_ident(sym->ident), sym->bit_size, sym->ctype.alignment, sym->offset); - if (sym->fieldwidth) - printf("[%d..%d]", sym->bit_offset, sym->bit_offset+sym->fieldwidth-1); + printf("\t%s:%d:%ld at offset %ld.%d", show_ident(sym->ident), sym->bit_size, sym->ctype.alignment, sym->offset, sym->bit_offset); printf("\n"); } |