On 06.05.2020 22:25, Andreas Tobler wrote: > On 06.05.20 22:12, Jakub Jelinek wrote: >> On Wed, May 06, 2020 at 09:54:47PM +0200, Andreas Tobler wrote: >>> --- a/gcc/testsuite/gcc.dg/analyzer/alloca-leak.c >>> +++ b/gcc/testsuite/gcc.dg/analyzer/alloca-leak.c >>> @@ -1,5 +1,6 @@ >>> -#include <alloca.h> >>> - >>> +#include <stdlib.h> >> >> It needs to be: >>> +#if __has_include(<alloca.h>) >> >> +#include <alloca.h> >> >>> +#endif > > Doh :( > > Fixed, thanks. > >> __has_include doesn't include anything, just checks if the header is >> available. > > Then I just wonder why the tests passed on Linux (ubuntu-20.04) >
alloca.h is only needed on solaris. Other system can use stdlib.h. > Andreas
signature.asc
Description: OpenPGP digital signature