gcc.dg/analyzer tests: use __builtin_alloca, not alloca.h
authorAlexandre Oliva <oliva@adacore.com>
Fri, 15 Jan 2021 18:36:22 +0000 (15:36 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Fri, 15 Jan 2021 18:36:22 +0000 (15:36 -0300)
commitc0194736b477aef3cf0d15ccd12c64572869cf3f
treed0ef4928a92d406f051d72111ab32745deea192c
parentaaec739250b1b148f7db5aa86719fe76645efc06
gcc.dg/analyzer tests: use __builtin_alloca, not alloca.h

Use __builtin_alloca.  Some systems don't have alloca.h or alloca.

Co-Authored-By: Olivier Hainque <hainque@adacore.com>
for  gcc/testsuite/ChangeLog

* gcc.dg/analyzer/alloca-leak.c: Drop alloca.h, use builtin.
* gcc.dg/analyzer/data-model-1.c: Likewise.
* gcc.dg/analyzer/malloc-1.c: Likewise.
* gcc.dg/analyzer/malloc-paths-8.c: Likewise.
gcc/testsuite/gcc.dg/analyzer/alloca-leak.c
gcc/testsuite/gcc.dg/analyzer/data-model-1.c
gcc/testsuite/gcc.dg/analyzer/malloc-1.c
gcc/testsuite/gcc.dg/analyzer/malloc-paths-8.c