[Bug tree-optimization/113706] c-c++-common/pr103798-2.c FAILs as C++
ro at CeBiTec dot Uni-Bielefeld.DE
gcc-bugzilla@gcc.gnu.org
Fri Feb 2 09:19:28 GMT 2024
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.
More information about the Gcc-bugs
mailing list