https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127914
--- Comment #15 from Steve Kargl <kargl at gcc dot gnu.org> ---
(In reply to Jonathan Wakely from comment #13)
> Un-assigning myself since the problem is much wider than just libstdc++.
Thanks for the help. It is interesting to see that libiberty.h
contains
/* Make memrchr available on systems that do not have it. */
#if !defined (__GNU_LIBRARY__ ) && !defined (__linux__) && \
!defined (HAVE_MEMRCHR)
extern void *memrchr(const void *, int, size_t);
#endif
I wonder what would happen if the test for __linux__
was removed.
BTW, /usr/include/string.h contains
__BEGIN_DECLS
...
#if __BSD_VISIBLE
void *memrchr(const void *, int, size_t) __pure;
#endif
...
__END_DECLS