libgomp: Don't use <alloca.h>.

libgomp/
	* oacc-parallel.c: Don't include <alloca.h>.
	(GOACC_parallel): Use gomp_alloca instead of alloca.

From-SVN: r219771
This commit is contained in:
Thomas Schwinge 2015-01-16 21:05:21 +01:00 committed by Thomas Schwinge
parent eae801bacc
commit 6e36114cdf
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -34,7 +34,6 @@
#include <string.h>
#include <stdarg.h>
#include <assert.h>
#include <alloca.h>
static int
find_pset (int pos, size_t mapnum, unsigned short *kinds)
@ -151,7 +150,7 @@ GOACC_parallel (int device, void (*fn) (void *), const void *offload_table,
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);