Commit e08e7137 by Richard Kenner

(layout_record): When PCC_BITFIELD_TYPE_MATTERS, compute bitpos using

field_size % type_align instead of field_size.

From-SVN: r10778
parent ce805568
......@@ -437,7 +437,7 @@ layout_record (rec)
That can happen because the width exceeds BIGGEST_ALIGNMENT
or because it exceeds maximum_field_alignment. */
if (const_size / type_align
!= (const_size + field_size - 1) / type_align)
!= (const_size + (field_size % type_align) - 1) / type_align)
const_size = CEIL (const_size, type_align) * type_align;
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment