In my tests, I see a few implicit ints/implicit function declarations: conftest.c:107: defaulting to int conftest.c:119: defaulting to int conftest.c:121: implicit function declaration: exit conftest.c:59: implicit function declaration: strcmp conftest.c:203: implicit function declaration: strlen conftest.c:191: implicit function declaration: exit conftest.c:183: defaulting to int conftest.c:206: implicit function declaration: strcpy conftest.c:208: implicit function declaration: strncmp I think those are from libiberty, so there is likely overlap with GDB (bug 2143992). Syncing with GCC might fix those.
Fixed in binutils-2.39-6.fc38. Note - in addition to the libiberty fixes I found once place in the gas configuration tests where it was using strcmp without #include <string.h>, so I fixed that as well.
Thank you! Could you share a links to the upstream commits? Then I can put them into the documentation repository. We don't need to backport this to earlier releases.
(In reply to Florian Weimer from comment #2) > Thank you! Could you share a links to the upstream commits? Sure: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=0075c53724f78c78aa1692cc8e3bf1433eeb0b9f