This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Widen field offset


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]