]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[og9] Fix src_copy mismerge in GOMP_OFFLOAD_openacc_async_host2dev
authorJulian Brown <julian@codesourcery.com>
Tue, 10 Sep 2019 15:33:48 +0000 (08:33 -0700)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 3 Mar 2020 11:51:25 +0000 (12:51 +0100)
libgomp/
* plugin/plugin-gcn.c (GOMP_OFFLOAD_openacc_async_host2dev): Enqueue
copy from src_copy not src.

(cherry picked from openacc-gcc-9-branch commit
182c52fc5b247a2bb08a83d27edf269ef668e7dd)

libgomp/ChangeLog.omp
libgomp/plugin/plugin-gcn.c

index 59605cd85bf598a86be4306cd874e56c782dfa99..a15d4a0ed490172cd89781af9fefc7a22f907df4 100644 (file)
@@ -1,3 +1,8 @@
+2019-09-10  Julian Brown  <julian@codesourcery.com>
+
+       * plugin/plugin-gcn.c (GOMP_OFFLOAD_openacc_async_host2dev): Enqueue
+       copy from src_copy not src.
+
 2019-09-10  Kwok Cheung Yeung  <kcy@codesourcery.com>
 
        * config/gcn/team.c (gomp_gcn_exit_kernel): Free GCN thread list.
index 9d03e4f9f5b433db06f819eb3dc670cff306e8a7..2b17204cd807871b98cbe0fd2db0dbfecdb2877c 100644 (file)
@@ -3613,7 +3613,7 @@ GOMP_OFFLOAD_openacc_async_host2dev (int device, void *dst, const void *src,
      But, that is probably correct.  */
   void *src_copy = GOMP_PLUGIN_malloc (n);
   memcpy (src_copy, src, n);
-  queue_push_copy (aq, dst, src, n, true);
+  queue_push_copy (aq, dst, src_copy, n, true);
   return true;
 }