https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105660
--- Comment #4 from Romain Dolbeau <romain at dolbeau dot org> --- It seems the issue was an 'r' dropped from the name of 'strrchr' in the offending commit. Fixing this resolves the bug for us. See the attached patch.