patch for objc failures
Geoff Keating
geoffk@cygnus.com
Sun Apr 2 15:39:00 GMT 2000
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)));
}
============================================================
More information about the Gcc-patches
mailing list