[PATCH] Speed up get_ref_base_and_extent

Eric Botcazou ebotcazou@adacore.com
Wed Mar 28 20:23:00 GMT 2007

> A little bit weird, but you know ada, so - ok ;)

Thanks. :-)  The trick is explained in the function I mentioned.

> (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. :-)

Eric Botcazou

More information about the Gcc-patches mailing list