Re: [PATCH] issue -Wstring-compare in more case (PR 95673)

2020-11-06 Thread Jeff Law via Gcc-patches
On 9/30/20 6:14 PM, Martin Sebor via Gcc-patches wrote: > -Wstring-compare triggers under the same strict conditions as > the strcmp/strncmp call is folded into a constant: only when > all the uses of the result are [in]equality expressions with > zero.  However, even when the call cannot be fold

[PING 2][PATCH] issue -Wstring-compare in more case (PR 95673)

2020-10-27 Thread Martin Sebor via Gcc-patches
Ping: https://gcc.gnu.org/pipermail/gcc-patches/2020-October/555225.html On 10/8/20 8:43 AM, Martin Sebor wrote: Ping: https://gcc.gnu.org/pipermail/gcc-patches/2020-October/555225.html On 9/30/20 6:14 PM, Martin Sebor wrote: -Wstring-compare triggers under the same strict conditions as the st

Re: [PATCH] issue -Wstring-compare in more case (PR 95673)

2020-10-08 Thread Martin Sebor via Gcc-patches
Ping: https://gcc.gnu.org/pipermail/gcc-patches/2020-October/555225.html On 9/30/20 6:14 PM, Martin Sebor wrote: -Wstring-compare triggers under the same strict conditions as the strcmp/strncmp call is folded into a constant: only when all the uses of the result are [in]equality expressions with

[PATCH] issue -Wstring-compare in more case (PR 95673)

2020-09-30 Thread Martin Sebor via Gcc-patches
-Wstring-compare triggers under the same strict conditions as the strcmp/strncmp call is folded into a constant: only when all the uses of the result are [in]equality expressions with zero. However, even when the call cannot be folded into a constant because the result is in addition used in othe