From: Alexandre Oliva <ol...@adacore.com> Several adaint.c functions call alloca, but vxworks doesn't declare it. Use the GCC builtin.
gcc/ada/ChangeLog: * adaint.c [__vxworks] (alloca): Redirect to builtin. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/adaint.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/ada/adaint.c b/gcc/ada/adaint.c index 2f5bbf31f79..adc39517280 100644 --- a/gcc/ada/adaint.c +++ b/gcc/ada/adaint.c @@ -63,6 +63,10 @@ #include <sys/time.h> #include <ctype.h> /* for isalpha */ +#ifndef alloca +#define alloca(n) __builtin_alloca(n) +#endif + #if defined (__mips_vxworks) #include "cacheLib.h" #endif /* __mips_vxworks */ -- 2.43.0