use __builtin_alloca, drop non-standard alloca.h
authorAlexandre Oliva <oliva@adacore.com>
Fri, 16 Aug 2019 03:38:36 +0000 (03:38 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Fri, 16 Aug 2019 03:38:36 +0000 (03:38 +0000)
commit1ce521ece9a514dd8c5a3baa6e66bab928fd5e7c
tree4a05b24c504c973672c431befa31e0f486475622
parent2bfd0045b1a52540315042d0f55798c3679cd5f6
use __builtin_alloca, drop non-standard alloca.h

Since alloca.h is not ISO C, most of our alloca-using tests seem to
rely on __builtin_alloca instead of including the header and calling
alloca.  This patch extends this practice to some of the exceptions I
found in gcc.target, marking them as requiring a functional alloca
while at that.

for  gcc/testsuite/ChangeLog

* gcc.target/arc/interrupt-6.c: Use __builtin_alloca, require
effective target support for alloca, drop include of alloca.h.
* gcc.target/i386/pr80969-3.c: Likewise.
* gcc.target/sparc/setjmp-1.c: Likewise.
* gcc.target/x86_64/abi/ms-sysv/gen.cc: Likewise.
* gcc.target/x86_64/abi/ms-sysv/ms-sysv.c: Likewise.

From-SVN: r274558
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arc/interrupt-6.c
gcc/testsuite/gcc.target/i386/pr80969-3.c
gcc/testsuite/gcc.target/sparc/setjmp-1.c
gcc/testsuite/gcc.target/x86_64/abi/ms-sysv/gen.cc
gcc/testsuite/gcc.target/x86_64/abi/ms-sysv/ms-sysv.c