+2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
+
+ * oacc-parallel.c: Don't include <alloca.h>.
+ (GOACC_parallel): Use gomp_alloca instead of alloca.
+
2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
* target.c (num_devices): Guard with PLUGIN_SUPPORT.
#include <string.h>
#include <stdarg.h>
#include <assert.h>
-#include <alloca.h>
static int
find_pset (int pos, size_t mapnum, unsigned short *kinds)
tgt = gomp_map_vars (acc_dev, mapnum, hostaddrs, NULL, sizes, kinds, true,
false);
- devaddrs = alloca (sizeof (void *) * mapnum);
+ devaddrs = gomp_alloca (sizeof (void *) * mapnum);
for (i = 0; i < mapnum; i++)
devaddrs[i] = (void *) (tgt->list[i]->tgt->tgt_start
+ tgt->list[i]->tgt_offset);