projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* support/regression/tests/bitfields.c:
[fw/sdcc]
/
src
/
SDCCglue.c
diff --git
a/src/SDCCglue.c
b/src/SDCCglue.c
index 060ef51547a28d7d0ba30125c03b0ca0ec8cf7d0..c65ca88ab012e2b7e3a35f422b4c26c3ffa43a17 100644
(file)
--- a/
src/SDCCglue.c
+++ b/
src/SDCCglue.c
@@
-660,6
+660,7
@@
printIvalBitFields (symbol **sym, initList **ilist, struct dbuf_s * oBuf)
if (0 == SPEC_BLEN (lsym->etype))
{
/* bit-field structure member with a width of 0 */
if (0 == SPEC_BLEN (lsym->etype))
{
/* bit-field structure member with a width of 0 */
+ lsym = lsym->next;
break;
}
else if (!SPEC_BUNNAMED (lsym->etype))
break;
}
else if (!SPEC_BUNNAMED (lsym->etype))
@@
-744,9
+745,11
@@
printIvalStruct (symbol * sym, sym_link * type,
if (IS_BITFIELD (sflds->type))
printIvalBitFields(&sflds, &iloop, oBuf);
else
if (IS_BITFIELD (sflds->type))
printIvalBitFields(&sflds, &iloop, oBuf);
else
- printIval (sym, sflds->type, iloop, oBuf, 1);
- sflds = sflds->next;
- iloop = iloop ? iloop->next : NULL;
+ {
+ printIval (sym, sflds->type, iloop, oBuf, 1);
+ sflds = sflds->next;
+ iloop = iloop ? iloop->next : NULL;
+ }
}
}
}
}