Re: [PATCH] improve out-of-bounds pointer warning (PR 88771)

2019-02-08 Thread Richard Biener
On Thu, Feb 7, 2019 at 2:14 AM Martin Sebor wrote: > > The attached patch doesn't avoid the false positive but only improves > the warning to make it more readable (as suggested in the PR by Richard > for GCC 9). With the patch, for a call like: > >memcpy (d, s, -1); > > where d and s are poi

[PATCH] improve out-of-bounds pointer warning (PR 88771)

2019-02-06 Thread Martin Sebor
The attached patch doesn't avoid the false positive but only improves the warning to make it more readable (as suggested in the PR by Richard for GCC 9). With the patch, for a call like: memcpy (d, s, -1); where d and s are pointers with unknown provenances the patch has GCC in LP32 issue