mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-29 02:54:45 +08:00
stor-layout.c (layout_record): Correct test for whether field spans its unit of alignment in case where...
* stor-layout.c (layout_record): Correct test for whether field spans its unit of alignment in case where field_size == type_align. From-SVN: r13540
This commit is contained in:
parent
a12f68f4f2
commit
b5fa331476
@ -445,7 +445,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 % type_align) - 1) / type_align)
|
||||
!= (const_size + MIN (field_size, type_align) - 1) / type_align)
|
||||
const_size = CEIL (const_size, type_align) * type_align;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user