From: Thomas Schwinge Date: Mon, 26 Oct 2015 16:24:17 +0000 (+0100) Subject: [PR libgomp/65437, libgomp/66518] Initialize runtime in acc_update_device, acc_update... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8baa7864a6ad2680b79b6b80eb223ff2e7db4f48;p=gcc.git [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 --- diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 658c47b0c13..76cb423e0f4 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,10 @@ +2015-10-26 Thomas Schwinge + + 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 PR testsuite/68063 diff --git a/libgomp/oacc-mem.c b/libgomp/oacc-mem.c index af067d6e73c..54109061fb1 100644 --- a/libgomp/oacc-mem.c +++ b/libgomp/oacc-mem.c @@ -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); diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-42.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-42.c index 95c41625466..de5d1c13cf8 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-42.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-42.c @@ -35,7 +35,5 @@ main (int argc, char **argv) } /* { dg-output "CheCKpOInT(\n|\r\n|\r).*" } */ -/* TODO: currently doesn't print anything; SIGSEGV. - . */ -/* { dg-output "\\\[\[0-9a-fA-FxX\]+,256\\\] is not mapped" { xfail *-*-* } } */ +/* { dg-output "\\\[\[0-9a-fA-FxX\]+,256\\\] is not mapped" } */ /* { dg-shouldfail "" } */