mirror of git://gcc.gnu.org/git/gcc.git
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:
parent
eae801bacc
commit
6e36114cdf
|
@ -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>
|
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 @@
|
||||||
#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,
|
||||||
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);
|
||||||
|
|
Loading…
Reference in New Issue