Commit 6e36114c by Thomas Schwinge Committed by Thomas Schwinge

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
parent eae801ba
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> 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
* target.c (num_devices): Guard with PLUGIN_SUPPORT. * target.c (num_devices): Guard with PLUGIN_SUPPORT.
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>
#include <assert.h> #include <assert.h>
#include <alloca.h>
static int static int
find_pset (int pos, size_t mapnum, unsigned short *kinds) 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, ...@@ -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, tgt = gomp_map_vars (acc_dev, mapnum, hostaddrs, NULL, sizes, kinds, true,
false); false);
devaddrs = alloca (sizeof (void *) * mapnum); devaddrs = gomp_alloca (sizeof (void *) * mapnum);
for (i = 0; i < mapnum; i++) for (i = 0; i < mapnum; i++)
devaddrs[i] = (void *) (tgt->list[i]->tgt->tgt_start devaddrs[i] = (void *) (tgt->list[i]->tgt->tgt_start
+ tgt->list[i]->tgt_offset); + tgt->list[i]->tgt_offset);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment