]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PR libgomp/65437, libgomp/66518] Initialize runtime in acc_update_device, acc_update...
authortschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Oct 2015 16:24:17 +0000 (16:24 +0000)
committertschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Oct 2015 16:24:17 +0000 (16:24 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229378 138bc75d-0d04-0410-961f-82ee72b054a4

libgomp/ChangeLog
libgomp/oacc-mem.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-42.c

index 658c47b0c13360b7fd839f14d7321fd0c4c6a2f4..76cb423e0f4f8bda489cc5cb2500f73264ec20e5 100644 (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
index af067d6e73c09ec55226a1c86a4333bd5225f3bb..54109061fb1c8712f297edd0af50639b92dc9635 100644 (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);
index 95c416254665aa75a9a11fe0070ec5ecb22846f8..de5d1c13cf89e8ecd1edea33c9c1c96ed5c62bb8 100644 (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 "" } */