https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127914
--- Comment #11 from Steve Kargl <kargl at gcc dot gnu.org> ---
(In reply to Steve Kargl from comment #10)
> So, configure in libiberty defines MEMRCHR. Do we need to update the
> configury in lto-plugin?
Adding --disable-lto to the configure command line results in the
following death
gmake[3]: Entering directory
'/home/kargl/gcc/obj/build-x86_64-unknown-freebsd16.0/fixincludes'
/usr/local/bin/gcc16 -c -O -g -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute
-Wno-overlength-strings -pedantic -Wno-long-long -DHAVE_CONFIG_H -I.
-I../../../gcc/fixincludes -I../include -I../../../gcc/fixincludes/../include
../../../gcc/fixincludes/fixincl.c
In file included from /usr/include/stdio.h:38,
from ../../../gcc/fixincludes/system.h:30,
from ../../../gcc/fixincludes/fixlib.h:29,
from ../../../gcc/fixincludes/fixincl.c:24:
../../../gcc/fixincludes/../include/libiberty.h:226:14: error: expected
identifier or '(' before '_Generic'
226 | extern void *memrchr(const void *, int, size_t);
| ^~~~~~~
Seems libiberty/config.h is not propagated to other directories.