On Jan 31, 2008 9:11 PM, DJ Delorie <[EMAIL PROTECTED]> wrote:
>
> >     case POINTER_PLUS_EXPR:
> >       /* Even though the sizetype mode and the pointer's mode can be 
> > different
> >          expand is able to handle this correctly and get the correct result 
> > out
> >          of the PLUS_EXPR code.  */
>
> Me thinks that comment now needs some rethinking ;-)

:)

It's correct to always sign-extend the offset to the pointer mode
width (or simply truncate
it, if the offset width is larger than pointer mode width).

Richard.

Reply via email to