On Mon, Sep 30, 2019 at 03:16:00PM +0200, Andreas Tobler wrote: > here on FreeBSD we lack the alloca.h header so two test cases fail to > compile. > > Do the same as I did six years ago for another test case: 'Remove alloca.h > and replace it with __builtin_alloca" > > Is this ok for trunk? > > TIA, > Andreas > > 2019-09-30 Andreas Tobler <andre...@gcc.gnu.org> > > * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h > inlcude. Replace alloca () with __builtin_alloca ().
s/inlcude/include/ Because the tests are already using GCC specific builtins (__builtin_goacc_parlevel_id), I think that is ok, they aren't portable anyway, CCing Thomas to confirm. > * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise. Jakub