https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119283
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Iain D Sandoe <ia...@gcc.gnu.org>: https://gcc.gnu.org/g:9018336252463ffed28f01badfdea2a3ca3ba5c8 commit r15-9028-g9018336252463ffed28f01badfdea2a3ca3ba5c8 Author: Iain Sandoe <i...@sandoe.co.uk> Date: Sat Mar 15 22:30:20 2025 +0000 libiberty, gcc: Add memrchr to libiberty and use it [PR119283]. This adds an implementation of memrchr to libiberty and arranges to configure gcc to use it, if the host does not have it. PR cobol/119283 gcc/ChangeLog: * config.in: Regenerate. * configure: Regenerate. * configure.ac: Check for host memrchr. include/ChangeLog: * libiberty.h (memrchr): New. libiberty/ChangeLog: * Makefile.in: Add memrchr build rules. * config.in: Regenerate. * configure: Regenerate. * configure.ac: Check for memrchr. * functions.texi: Document memrchr. * memrchr.c: New file. Signed-off-by: Iain Sandoe <i...@sandoe.co.uk>