diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ac23efa638f..122cf05eabc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-04-03 Geoffrey Keating + + * stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than + CEIL_DIV_EXPR. + 2000-04-03 Philipp Thomas * i386.h (TARGET_SWITCHES): Remove bogus empty strings, fix typo. diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 008c29cca41..c27cc229e35 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -451,7 +451,7 @@ byte_from_pos (offset, bitpos) { return size_binop (PLUS_EXPR, offset, convert (sizetype, - size_binop (CEIL_DIV_EXPR, bitpos, + size_binop (TRUNC_DIV_EXPR, bitpos, bitsize_unit_node))); }