Re: [RFC] tree-optimization: fix optimize-out variables passed into func to alloc

2023-01-17 Thread Richard Biener via Gcc-patches
On Tue, Jan 17, 2023 at 10:41 PM Andrew Pinski via Gcc-patches wrote: > > On Tue, Jan 17, 2023 at 7:36 AM Alexey Lapshin via Gcc-patches > wrote: > > > > After updating to GCC newer than 11.4.0 we found that some code started > > to fail if it was built with size optimization (-Os). > > You can f

Re: [RFC] tree-optimization: fix optimize-out variables passed into func to alloc

2023-01-17 Thread Andrew Pinski via Gcc-patches
On Tue, Jan 17, 2023 at 7:36 AM Alexey Lapshin via Gcc-patches wrote: > > After updating to GCC newer than 11.4.0 we found that some code started > to fail if it was built with size optimization (-Os). > You can find testsuite for reproduction in the attached patch. > > The simplified version affe

[RFC] tree-optimization: fix optimize-out variables passed into func to alloc

2023-01-17 Thread Alexey Lapshin via Gcc-patches
After updating to GCC newer than 11.4.0 we found that some code started to fail if it was built with size optimization (-Os). You can find testsuite for reproduction in the attached patch. The simplified version affected code looks like this: void alloc_function (unsigned char **data_p) { *data