https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71537
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 40249 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40249&action=edit gcc7-pr71537-strchr.patch For the builtins, it seems to be just recent regressions, people are moving builtins folding out of builtins.c into gimple-fold.c and totally forgetting constexpr. Here is a patch to handle strchr/strrchr. I'll look at memchr next.