https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171
Alexander Monakov <amonakov at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amonakov at gcc dot gnu.org
--- Comment #15 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
Note, unlike comment #0 seems to imply it is incorrect to "optimize"
!strcmp(str, "abc")
to an unaligned 4-byte load from str and a compare because the pointed-to
string may be shorter than 4 and the wide load might fault. Likewise for
strncmp. For memcmp it's ok.