Re: [patch] relax aarch64 stack-clash tests depedence on alloca.h

2020-01-08 Thread Olivier Hainque
> On 7 Jan 2020, at 18:21, Richard Sandiford wrote: >> * gcc.target/aarch64/stack-check-alloca.h: Remove >> #include alloca.h. #define alloca __builtin_alloca >> instead. > OK, thanks. Great, thanks Richard!

Re: [patch] relax aarch64 stack-clash tests depedence on alloca.h

2020-01-07 Thread Richard Sandiford
Olivier Hainque writes: > Hi Andrew, > >> On 6 Jan 2020, at 23:24, Andrew Pinski wrote: >> Just one small suggestion: > > Sure > >> Instead of: >> - char* pStr = alloca(SIZE); >> + char* pStr = __builtin_alloca(SIZE); >> >> Why not just do: >> -#include >> +#define alloca __builtin_alloca > >

Re: [patch] relax aarch64 stack-clash tests depedence on alloca.h

2020-01-07 Thread Olivier Hainque
Hi Andrew, > On 6 Jan 2020, at 23:24, Andrew Pinski wrote: > Just one small suggestion: Sure > Instead of: > - char* pStr = alloca(SIZE); > + char* pStr = __builtin_alloca(SIZE); > > Why not just do: > -#include > +#define alloca __builtin_alloca Yes, good idea. Revised patch attached, wh

Re: [patch] relax aarch64 stack-clash tests depedence on alloca.h

2020-01-06 Thread Andrew Pinski
On Mon, Jan 6, 2020 at 2:18 PM Olivier Hainque wrote: > > Hello, > > The aarch64 testsuite features a few tests for > the stack-clash-protection facility, all using "alloca" > after an #include . > > The use of alloca.h causes the tests to fail on > target systems not providing that header, such a

[patch] relax aarch64 stack-clash tests depedence on alloca.h

2020-01-06 Thread Olivier Hainque
Hello, The aarch64 testsuite features a few tests for the stack-clash-protection facility, all using "alloca" after an #include . The use of alloca.h causes the tests to fail on target systems not providing that header, such as some variants of VxWorks. My understanding is that the tests really