From: Doug Evans Date: Tue, 21 Jan 1997 18:21:05 +0000 (+0000) Subject: stor-layout.c (layout_record): Correct test for whether field spans its unit of align... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5fa331476504dc8f16a009832fbf555bd3fc0e9;p=gcc.git 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 --- diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index e7af7d2a7fb..e014e47d007 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -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