This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
byte_from_pos & CEIL_DIV_EXPR
- To: kenner at vlsi1 dot ultra dot nyu dot edu
- Subject: byte_from_pos & CEIL_DIV_EXPR
- From: Geoff Keating <geoffk at cygnus dot com>
- Date: Sat, 1 Apr 2000 19:10:20 -0800
- CC: law at cgynus dot com, gcc at gcc dot gnu dot org
Hi Richard,
Is there some reason why byte_from_pos uses CEIL_DIV_EXPR rather than,
say, TRUNC_DIV_EXPR? I would expect that TRUNC_DIV_EXPR or
FLOOR_DIV_EXPR would be more correct, since if something starts at a
bitwise offset of 11, then it starts at a byte offset of 1, not 2.
I suspect this is causing the objc failures, but I haven't checked.
I'm just trying to understand the code.
--
- Geoffrey Keating <geoffk@cygnus.com>