https://gcc.gnu.org/g:0d50da6082ac6c06c148ac94736ec009bb260e0a
commit 0d50da6082ac6c06c148ac94736ec009bb260e0a Author: Alexandre Oliva <ol...@adacore.com> Date: Thu May 8 02:18:19 2025 -0300 vxworks: libgcc: include string.h for memset gthr-vxworks-thread.c calls memset in __ghtread_cond_signal, but it fails ot include <string.h>, where this function is declared, and GCC 14 rejects calls of undeclared functions. Include the required header. for libgcc/ChangeLog * config/gthr-vxworks-thread.c: Include string.h for memset. Diff: --- libgcc/config/gthr-vxworks-thread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libgcc/config/gthr-vxworks-thread.c b/libgcc/config/gthr-vxworks-thread.c index 17c60faba48f..31f291aca67e 100644 --- a/libgcc/config/gthr-vxworks-thread.c +++ b/libgcc/config/gthr-vxworks-thread.c @@ -33,6 +33,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include <taskLib.h> #include <stdlib.h> +#include <string.h> #define __TIMESPEC_TO_NSEC(timespec) \ ((long long)timespec.tv_sec * 1000000000 + (long long)timespec.tv_nsec)