Re: [PATCH] tree-optimization/107561 - reduce -Wstringop-overflow false positives

2023-03-31 Thread Jeff Law via Gcc-patches
On 3/29/23 06:11, Richard Biener via Gcc-patches wrote: The following tells pointer-query to prefer a zero size when we are querying for the size range for a write into an object we've determined is of zero size. That avoids diagnostics about really varying size arguments that just get a mean

Re: [PATCH] tree-optimization/107561 - reduce -Wstringop-overflow false positives

2023-03-30 Thread Richard Biener via Gcc-patches
On Wed, 29 Mar 2023, Richard Biener wrote: > The following tells pointer-query to prefer a zero size when we > are querying for the size range for a write into an object we've > determined is of zero size. That avoids diagnostics about really > varying size arguments that just get a meaningful ra

[PATCH] tree-optimization/107561 - reduce -Wstringop-overflow false positives

2023-03-29 Thread Richard Biener via Gcc-patches
The following tells pointer-query to prefer a zero size when we are querying for the size range for a write into an object we've determined is of zero size. That avoids diagnostics about really varying size arguments that just get a meaningful range for example because they are multiplied by an el