Re: [PATCH] tree-optimization/106904 - bogus -Wstringopt-overflow with vectors

2022-12-16 Thread Jeff Law via Gcc-patches
On 12/7/22 06:54, Richard Biener via Gcc-patches wrote: The following avoids CSE of &ps->wp to &ps->wp.hwnd confusing -Wstringopt-overflow by making sure to produce addresses to the biggest container from vectorization. For this I introduce strip_zero_offset_components which turns &ps->wp.hwn

Re: [PATCH] tree-optimization/106904 - bogus -Wstringopt-overflow with vectors

2022-12-11 Thread Richard Biener via Gcc-patches
On Wed, 7 Dec 2022, Richard Biener wrote: > The following avoids CSE of &ps->wp to &ps->wp.hwnd confusing > -Wstringopt-overflow by making sure to produce addresses to the > biggest container from vectorization. For this I introduce > strip_zero_offset_components which turns &ps->wp.hwnd into > &

[PATCH] tree-optimization/106904 - bogus -Wstringopt-overflow with vectors

2022-12-07 Thread Richard Biener via Gcc-patches
The following avoids CSE of &ps->wp to &ps->wp.hwnd confusing -Wstringopt-overflow by making sure to produce addresses to the biggest container from vectorization. For this I introduce strip_zero_offset_components which turns &ps->wp.hwnd into &(*ps) and use that to base the vector data references