https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81657
--- Comment #19 from Jakub Jelinek <jakub at gcc dot gnu.org> --- strchr with a c == 0 codepath doesn't have to be the same inner loop as strlen and for the returning of pointer rather than length can be more efficient than strlen.