https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92765
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- You don't need -Wstring-compare for that, it is miscompiled even with just -O2, during strlen1 pass when when incorrect range for the return value of the second strcmp is determined.