[PR libgomp/65437, libgomp/66518] Initialize runtime in acc_update_device, acc_update_self

libgomp/
	PR libgomp/65437
	PR libgomp/66518
	* oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
	* testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.

From-SVN: r229378
This commit is contained in:
Thomas Schwinge 2015-10-26 17:24:17 +01:00 committed by Thomas Schwinge
parent 4039e17351
commit 8baa7864a6
3 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,10 @@
2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
PR libgomp/65437
PR libgomp/66518
* oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
* testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
2015-10-23 Tom de Vries <tom@codesourcery.com>
PR testsuite/68063

View File

@ -547,6 +547,9 @@ update_dev_host (int is_dev, void *h, size_t s)
{
splay_tree_key n;
void *d;
goacc_lazy_initialize ();
struct goacc_thread *thr = goacc_thread ();
struct gomp_device_descr *acc_dev = thr->dev;
@ -554,9 +557,6 @@ update_dev_host (int is_dev, void *h, size_t s)
n = lookup_host (acc_dev, h, s);
/* No need to call lazy open, as the data must already have been
mapped. */
if (!n)
{
gomp_mutex_unlock (&acc_dev->lock);

View File

@ -35,7 +35,5 @@ main (int argc, char **argv)
}
/* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */
/* TODO: currently doesn't print anything; SIGSEGV.
<https://gcc.gnu.org/PR66518>. */
/* { dg-output "\\\[\[0-9a-fA-FxX\]+,256\\\] is not mapped" { xfail *-*-* } } */
/* { dg-output "\\\[\[0-9a-fA-FxX\]+,256\\\] is not mapped" } */
/* { dg-shouldfail "" } */