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: [patch] Fix PR middle-end/59138


Hi,

On Fri, 29 Nov 2013 12:28:15, Eric Botcazou wrote:
>
>> 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

Ok, committed as obvious, in both branches, after regression-testing.

Thanks
Bernd. 		 	   		  

Attachment: patch-emit-group-store.diff
Description: Binary data


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