diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2020-06-23 17:03:03 +0100 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:14:37 -0300 |
commit | 7b381ab7deee5e944ea92a16ff2e977707a9ac6c (patch) | |
tree | 9bf12871947fc15ec791abf33210d35648e15150 /gcc | |
parent | 52c0bba3b0933d42a3f805e5efe85b4672548f54 (diff) | |
download | gcc-7b381ab7deee5e944ea92a16ff2e977707a9ac6c.zip gcc-7b381ab7deee5e944ea92a16ff2e977707a9ac6c.tar.gz gcc-7b381ab7deee5e944ea92a16ff2e977707a9ac6c.tar.bz2 |
libiberty, include: add bsearch_r
libctf wants a bsearch that takes a void * arg pointer to avoid a
nonportable use of __thread.
bsearch_r is required, not optional, at this point because as far as I
can see this obvious-sounding function is not implemented by anyone's
libc. We can easily move it to AC_LIBOBJ later if it proves necessary
to do so.
include/
* libiberty.h (bsearch_r): New.
libiberty/
* bsearch_r.c: New file.
* Makefile.in (CFILES): Add bsearch_r.c.
(REQUIRED_OFILES): Add bsearch_r.o.
* functions.texi: Regenerate.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions