This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Widen field offset
- From: Richard Henderson <rth at redhat dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Wed, 28 Jan 2004 11:23:06 -0800
- Subject: Re: Widen field offset
- References: <16407.58672.710127.93770@cuddles.cambridge.redhat.com>
On Wed, Jan 28, 2004 at 04:37:04PM +0000, Andrew Haley wrote:
> A question: when I add a pointer and an integer, I need to widen the
> integer to be the same size as the pointer. Is it correct to do this
> by converting the integer to another pointer of the same type, or must
> I convert the integer to an integer type of the same size as a
> pointer?
I would think it makes most sense to convert to sizetype, but
frankly I'm not sure what happens with targets that use
partial-integer modes for Pmode.
r~