summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/stor-layout.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-09-18 05:45:16 +0000
committerpeter <peter@FreeBSD.org>1996-09-18 05:45:16 +0000
commitacb2bcd1679fc89c82b1ebd30a92fe0538b7f4dc (patch)
tree63294164689f80893cbbe6bd77927b5abe4339e9 /contrib/gcc/stor-layout.c
parentd4691e641ba47cb86eef80f5c879e13f9d961724 (diff)
downloadFreeBSD-src-acb2bcd1679fc89c82b1ebd30a92fe0538b7f4dc.zip
FreeBSD-src-acb2bcd1679fc89c82b1ebd30a92fe0538b7f4dc.tar.gz
Import of 2.7.2.1 into vendor branch
Diffstat (limited to 'contrib/gcc/stor-layout.c')
-rw-r--r--contrib/gcc/stor-layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/gcc/stor-layout.c b/contrib/gcc/stor-layout.c
index 8cdbf86..e743c37 100644
--- a/contrib/gcc/stor-layout.c
+++ b/contrib/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
OpenPOWER on IntegriCloud