[Bug tree-optimization/82950] possible strlen optimization for memcmp/strcmp of arrays
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Nov 17 00:02:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82950
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=78809
--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
An even simpler test case:
void g (void)
{
const char a[] = "abc";
const char b[] = "abcd";
if (!__builtin_strcmp (a, b))
__builtin_abort ();
}
See also bug 78809.
More information about the Gcc-bugs
mailing list