[Bug middle-end/97336] False positive -Wstring-compare warning for strncmp()

2020-10-09 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97336 --- Comment #3 from Martin Sebor --- For better or worse, in the internal representation there's no way to differentiate a call that was synthesized during loop unrolling (or any other similar transformation) from the original call in the source

[Bug middle-end/97336] False positive -Wstring-compare warning for strncmp()

2020-10-09 Thread franke at computer dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97336 --- Comment #2 from Christian Franke --- Sorry, but I disagree that this report is INVALID. Unlike for example -Wstringop-overflow, warnings like -Wstring-compare should IMO only occur if the warning condition holds for *all* function calls gene

[Bug middle-end/97336] False positive -Wstring-compare warning for strncmp()

2020-10-08 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97336 Martin Sebor changed: What|Removed |Added Resolution|--- |INVALID CC|