[PATCH] Speed up get_ref_base_and_extent

Richard Guenther richard.guenther@gmail.com
Wed Mar 28 20:28:00 GMT 2007


On 3/28/07, Eric Botcazou <ebotcazou@adacore.com> wrote:
> > A little bit weird, but you know ada, so - ok ;)
>
> Thanks. :-)  The trick is explained in the function I mentioned.

I don't see that function - the closest match is convert_to_thin_pointer.

> > (negative offsets??? oh well...)
>
> I presume you saw these lines at the end of the function:
>
>   /* ???  Due to negative offsets in ARRAY_REF we can end up with
>      negative bit_offset here.  We might want to store a zero offset
>      in this case.  */
>   *poffset = bit_offset;
>   *psize = bitsize;
>   *pmax_size = maxsize;
>
> In this case, it's not Ada. :-)

Yeah - I added that - but that's user error, not weird language ;)

> --
> Eric Botcazou
>



More information about the Gcc-patches mailing list