aboutsummaryrefslogtreecommitdiff
path: root/tccgen.c
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2017-04-29 22:09:10 +0200
committerMichael Matz <matz@suse.de>2017-04-29 22:09:10 +0200
commitf775d687253df56d136f70e82c7367b6ba62e9fb (patch)
tree38c554b65444666e2830e5cb71afa8f8fb1beef1 /tccgen.c
parent28084420fed1f833da04a6f69380c276c9431cff (diff)
downloadtinycc-f775d687253df56d136f70e82c7367b6ba62e9fb.tar.gz
tinycc-f775d687253df56d136f70e82c7367b6ba62e9fb.tar.bz2
Remove a bit-field TODO
Checked the lcc testsuite for bitfield stuff (in cq.c and fields.c), fixed one more error in initializing unnamed members (which have to be skipped), removed the TODO.
Diffstat (limited to 'tccgen.c')
-rw-r--r--tccgen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tccgen.c b/tccgen.c
index d558ff8..4252c57 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -6075,6 +6075,8 @@ static void decl_designator(CType *type, Section *sec, unsigned long c,
c += index * type_size(type, &align);
} else {
f = *cur_field;
+ while (f && (f->v & SYM_FIRST_ANOM))
+ *cur_field = f = f->next;
if (!f)
tcc_error("too many field init");
/* XXX: fix this mess by using explicit storage field */