From: Thomas Schwinge Date: Fri, 16 Jan 2015 20:05:21 +0000 (+0100) Subject: libgomp: Don't use . X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6e36114cdf1a41e749e3769ec8181f5c5f965a1e;p=gcc.git libgomp: Don't use . libgomp/ * oacc-parallel.c: Don't include . (GOACC_parallel): Use gomp_alloca instead of alloca. From-SVN: r219771 --- diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 7c106d46ab0..065dfd4e8a7 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2015-01-16 Thomas Schwinge + + * oacc-parallel.c: Don't include . + (GOACC_parallel): Use gomp_alloca instead of alloca. + 2015-01-16 Gerald Pfeifer * target.c (num_devices): Guard with PLUGIN_SUPPORT. diff --git a/libgomp/oacc-parallel.c b/libgomp/oacc-parallel.c index 6d5386b1f94..b5e80603004 100644 --- a/libgomp/oacc-parallel.c +++ b/libgomp/oacc-parallel.c @@ -34,7 +34,6 @@ #include #include #include -#include 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);