diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-12-16 07:35:45 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-12-16 07:35:45 -0500 |
commit | e08e71376647aff1d09b6187277830d278a765ac (patch) | |
tree | af0b6c16ae8298c3aa5099b222c0b84bd21dca91 /gcc/stor-layout.c | |
parent | ce805568cfec2bafaecca89dc11fd2efbd14a427 (diff) | |
download | gcc-e08e71376647aff1d09b6187277830d278a765ac.tar.gz |
(layout_record): When PCC_BITFIELD_TYPE_MATTERS, compute bitpos using
field_size % type_align instead of field_size.
From-SVN: r10778
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 8cdbf86aa80..e743c373766 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -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 |