aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/stor-layout.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ac23efa..122cf05 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c
index 008c29c..c27cc22 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)));
}