On Wednesday 14 March 2018 08:40 PM, Richard Biener wrote:
> Instead of building a tree from max you should use
>
> if (wi::to_widest (max) < wi::to_widest (wi::to_wide (dstsize)))
> return;
>
> given compute_objsize is somewhat confused about the type it returns
> a widest_int compare
On Tue, Mar 13, 2018 at 7:22 PM, Siddhesh Poyarekar
wrote:
> Avoid issuing a bogus warning when the source of strncpy is bound by a
> constant known to be less than the minimum size of the destination.
>
> Changes from v1:
>
> - Use range-info instead of the MIN_EXPR hack
Avoid issuing a bogus warning when the source of strncpy is bound by a
constant known to be less than the minimum size of the destination.
Changes from v1:
- Use range-info instead of the MIN_EXPR hack
- Get the minimum size of dst and check for NULL_TREE return
The patch bootstraps