diff options
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 7 | ||||
-rw-r--r-- | libgomp/oacc-mem.c | 6 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.oacc-c-c++-common/lib-42.c | 4 |
3 files changed, 11 insertions, 6 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 658c47b..76cb423 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -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 diff --git a/libgomp/oacc-mem.c b/libgomp/oacc-mem.c index af067d6..5410906 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 95c4162..de5d1c1 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. - <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 "" } */ |