> I think I see a small flaw in that patch: > + /* Make sure not to write past the end of the struct. */ > + store_bit_field (dest, > + adj_bytelen * BITS_PER_UNIT, bytepos * BITS_PER_UNIT, > + bytepos * BITS_PER_UNIT, ssize * BITS_PER_UNIT, > + VOIDmode, tmps[i]); > the parameter BITREGION_END is wrong. > it should be: > ssize * BITS_PER_UNIT - 1
This won't change anything since you cannot access one bit without accessing its unit but yes, it's more correct. Feel free to change it on both branches. -- Eric Botcazou