https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113706
--- Comment #4 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot
Uni-Bielefeld.DE> ---
> --- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
> On Solaris, when compiling this
>
> #include <string.h>
>
> __attribute__ ((weak))
> int
> f (int a)
> {
> return memchr ("aE", a, 2) != NULL;
> }
>
> as C++ source, std::memchr is used and GCC doesn't treat std::memchr as
> BUILT_IN_MEMCHR.
I see. I'm testing a patch to directly define/declare NULL, size_t and
memchr instead of including <string.h>. This should still test what the
testcase is supposed to test, I believe.