Re: [PATCH] passes: Fix up subobject __bos [PR101419]

2021-07-13 Thread Richard Biener
On Tue, 13 Jul 2021, Jakub Jelinek wrote: > Hi! > > The following testcase is miscompiled, because VN during cunrolli changes > __bos argument from address of a larger field to address of a smaller field > and so __builtin_object_size (, 1) then folds into smaller value than the > actually availa

[PATCH] passes: Fix up subobject __bos [PR101419]

2021-07-13 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase is miscompiled, because VN during cunrolli changes __bos argument from address of a larger field to address of a smaller field and so __builtin_object_size (, 1) then folds into smaller value than the actually available size. copy_reference_ops_from_ref has a hack for th