Re: [PATCH] string: Add a workaround for -Wstringop-overread false positives [PR98465]

2021-02-09 Thread Jonathan Wakely via Gcc-patches
On 09/02/21 09:57 +0100, Jakub Jelinek wrote: Hi! In the PR there are several possibilities how to improve _M_disjunct at least in certain cases so that the compiler can figure out at least in some cases where __s is provably disjunct from _M_data() ... _M_data() + this->size() but it is probabl

[PATCH] string: Add a workaround for -Wstringop-overread false positives [PR98465]

2021-02-09 Thread Jakub Jelinek via Gcc-patches
Hi! In the PR there are several possibilities how to improve _M_disjunct at least in certain cases so that the compiler can figure out at least in some cases where __s is provably disjunct from _M_data() ... _M_data() + this->size() but it is probably GCC 12 material. The false positive warning i