mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-26 03:08:57 +08:00
(layout_record, PCC_BITFIELD_TYPE_MATTERS): Fix sign bug in last change.
From-SVN: r13892
This commit is contained in:
parent
3879920c64
commit
d9d08379df
@ -440,7 +440,7 @@ layout_record (rec)
|
||||
|
||||
/* A bit field may not span more units of alignment of its type
|
||||
than its type itself. Advance to next boundary if necessary. */
|
||||
if ((const_size / type_align - (const_size + field_size) / type_align)
|
||||
if (((const_size + field_size) / type_align - const_size / type_align)
|
||||
> TREE_INT_CST_LOW (TYPE_SIZE (TREE_TYPE (field))) / type_align)
|
||||
const_size = CEIL (const_size, type_align) * type_align;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user