+2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
+
+ * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
+ include. Replace alloca () with __builtin_alloca ().
+ * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
+
2019-10-01 Jakub Jelinek <jakub@redhat.com>
* configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
#include <openacc.h>
-#include <alloca.h>
#include <string.h>
#include <stdio.h>
#include <gomp-constants.h>
{
int exit = 0;
int ix;
- int *gangs = (int *)alloca (gp * sizeof (int));
- int *workers = (int *)alloca (wp * sizeof (int));
- int *vectors = (int *)alloca (vp * sizeof (int));
+ int *gangs = (int *)__builtin_alloca (gp * sizeof (int));
+ int *workers = (int *)__builtin_alloca (wp * sizeof (int));
+ int *vectors = (int *)__builtin_alloca (vp * sizeof (int));
int offloaded = 0;
memset (gangs, 0, gp * sizeof (int));
/* { dg-additional-options "-fopenacc-dim=16:16" } */
#include <openacc.h>
-#include <alloca.h>
#include <string.h>
#include <stdio.h>
#include <gomp-constants.h>
{
int exit = 0;
int ix;
- int *gangs = (int *)alloca (gp * sizeof (int));
- int *workers = (int *)alloca (wp * sizeof (int));
- int *vectors = (int *)alloca (vp * sizeof (int));
+ int *gangs = (int *)__builtin_alloca (gp * sizeof (int));
+ int *workers = (int *)__builtin_alloca (wp * sizeof (int));
+ int *vectors = (int *)__builtin_alloca (vp * sizeof (int));
int offloaded = 0;
memset (gangs, 0, gp * sizeof (int));