stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than CEIL_DIV_EXPR.

* stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
        CEIL_DIV_EXPR.

From-SVN: r32874
This commit is contained in:
Geoff Keating 2000-04-03 00:17:03 -06:00 committed by Jeff Law
parent 053f11267a
commit f0fddb1554
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2000-04-03 Geoffrey Keating <geoffk@cygnus.com>
* stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
CEIL_DIV_EXPR.
2000-04-03 Philipp Thomas <pthomas@suse.de>
* i386.h (TARGET_SWITCHES): Remove bogus empty strings, fix typo.

View file

@ -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)));
}