Re: [PATCH] detect out-of-bounds stores by atomic functions [PR102453]

2021-10-11 Thread Richard Biener via Gcc-patches
On Mon, Oct 11, 2021 at 11:25 PM Martin Sebor wrote: > > The attached change extends GCC's warnings for out-of-bounds > stores to cover atomic (and __sync) built-ins. > > Rather than hardcoding the properties of these built-ins just > for the sake of the out-of-bounds detection, on the assumption

[PATCH] detect out-of-bounds stores by atomic functions [PR102453]

2021-10-11 Thread Martin Sebor via Gcc-patches
The attached change extends GCC's warnings for out-of-bounds stores to cover atomic (and __sync) built-ins. Rather than hardcoding the properties of these built-ins just for the sake of the out-of-bounds detection, on the assumption that it might be useful for future optimizations as well, I took