This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: use __builtin_alloca, drop non-standard alloca.h
- From: Jeff Law <law at redhat dot com>
- To: Alexandre Oliva <oliva at adacore dot com>, gcc-patches at gcc dot gnu dot org
- Cc: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>, Mike Stump <mikestump at comcast dot net>
- Date: Thu, 15 Aug 2019 12:07:29 -0600
- Subject: Re: use __builtin_alloca, drop non-standard alloca.h
- References: <orimqykfky.fsf@lxoliva.fsfla.org>
On 8/15/19 2:17 AM, Alexandre Oliva wrote:
> 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.
>
> Tested on x86_64-linux-gnu, and manually compile-tested the non-x86
> tests. Ok to install?
>
>
> 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.
OK
jeff