diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2015-01-16 21:05:21 +0100 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gcc.gnu.org> | 2015-01-16 21:05:21 +0100 |
commit | 6e36114cdf1a41e749e3769ec8181f5c5f965a1e (patch) | |
tree | 6086d21bff53bac5d9c7c5f0e74df1a0829c5144 | |
parent | eae801bacc085da3a40c4db2e543aaae753f71be (diff) | |
download | gcc-6e36114cdf1a41e749e3769ec8181f5c5f965a1e.zip gcc-6e36114cdf1a41e749e3769ec8181f5c5f965a1e.tar.gz gcc-6e36114cdf1a41e749e3769ec8181f5c5f965a1e.tar.bz2 |
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
-rw-r--r-- | libgomp/ChangeLog | 5 | ||||
-rw-r--r-- | libgomp/oacc-parallel.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 7c106d4..065dfd4 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -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. diff --git a/libgomp/oacc-parallel.c b/libgomp/oacc-parallel.c index 6d5386b..b5e8060 100644 --- a/libgomp/oacc-parallel.c +++ b/libgomp/oacc-parallel.c @@ -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); |