This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
patch for objc failures
- To: gcc-patches at gcc dot gnu dot org
- Subject: patch for objc failures
- From: Geoff Keating <geoffk at cygnus dot com>
- Date: Sun, 2 Apr 2000 14:44:29 -0700
This patch seems to fix the objc failures with current GCC, and not
cause any regressions.
OK to commit?
--
- Geoffrey Keating <geoffk@cygnus.com>
===File ~/patches/cygnus/egcs-bytefrompos.patch=============
2000-04-01 Geoffrey Keating <geoffk@cygnus.com>
* stor-layout.c (byte_from_pos): Use TRUNC_DIV_EXPR rather than
CEIL_DIV_EXPR.
Index: stor-layout.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/stor-layout.c,v
retrieving revision 1.64
diff -u -p -r1.64 stor-layout.c
--- stor-layout.c 2000/03/30 11:47:07 1.64
+++ stor-layout.c 2000/04/02 22:36:51
@@ -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)));
}
============================================================