[Bug tree-optimization/92765] [10 Regression] Wrong code caused by folding of -Wstring-compare since r276773

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 3 10:17:00 GMT 2019


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.


More information about the Gcc-bugs mailing list