[Bug middle-end/28161] Wrong bit field layout with -mms-bitfields
seongbae dot park at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Jun 26 21:21:00 GMT 2006
------- Comment #2 from seongbae dot park at gmail dot com 2006-06-26 21:10 -------
More specifically:
1048 if (rli->remaining_in_alignment < bitsize)
1049 {
1050 /* out of bits; bump up to next 'word'. */
1051 rli->offset = DECL_FIELD_OFFSET (rli->prev_field);
1052 rli->bitpos
1053 = size_binop (PLUS_EXPR, TYPE_SIZE (type),
1054 DECL_FIELD_BIT_OFFSET
(rli->prev_field));
1055 rli->prev_field = field;
1056 rli->remaining_in_alignment
1057 = tree_low_cst (TYPE_SIZE (type), 1);
1058 }
The third operand of size_binop() of size_binop() at line 1053-1054
should be rli->bitpos.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28161
More information about the Gcc-bugs
mailing list