https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71537
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 40250 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40250&action=edit gcc7-pr71537-memchr.patch And this patch handles memchr.