[Bug middle-end/95673] missing -Wstring-compare for an impossible strncmp test

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jun 19 23:58:10 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95673

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
          Component|regression                  |middle-end
         Resolution|INVALID                     |---
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2020-06-19
            Summary|Inconsistent optimization   |missing -Wstring-compare
                   |behavior when there is a    |for an impossible strncmp
                   |buffer overflow             |test
             Status|RESOLVED                    |NEW

--- Comment #4 from Martin Sebor <msebor at gcc dot gnu.org> ---
Let me repurpose this bug to track the missing warning then.


More information about the Gcc-bugs mailing list