]> git.ipfire.org Git - thirdparty/gcc.git/commit
libiberty, gcc: Add memrchr to libiberty and use it [PR119283].
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 15 Mar 2025 22:30:20 +0000 (22:30 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 29 Mar 2025 13:53:22 +0000 (13:53 +0000)
commit9018336252463ffed28f01badfdea2a3ca3ba5c8
tree584ce68706b33b16e0f3764b2e30b9f48740906b
parenteb2182479fa9e0d747c3ba595213d840f85614df
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 <iain@sandoe.co.uk>
gcc/config.in
gcc/configure
gcc/configure.ac
include/libiberty.h
libiberty/Makefile.in
libiberty/config.in
libiberty/configure
libiberty/configure.ac
libiberty/functions.texi
libiberty/memrchr.c [new file with mode: 0644]