diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2023-03-23 12:32:35 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2023-03-24 17:14:54 +0100 |
commit | e8fec6998b656dac02d4bc6c69b35a0fb5611e87 (patch) | |
tree | fc064adf2a48ef7e8f1115c142666a271e892f1c | |
parent | 7f1e15f743357e037d7c4f6f6000863c26f3dfc3 (diff) | |
download | gcc-e8fec6998b656dac02d4bc6c69b35a0fb5611e87.zip gcc-e8fec6998b656dac02d4bc6c69b35a0fb5611e87.tar.gz gcc-e8fec6998b656dac02d4bc6c69b35a0fb5611e87.tar.bz2 |
Add caveat/safeguard to OpenMP: Handle descriptors in target's firstprivate [PR104949]
Follow-up to commit 49d1a2f91325fa8cc011149e27e5093a988b3a49
"OpenMP: Handle descriptors in target's firstprivate [PR104949]".
PR fortran/104949
libgomp/
* target.c (gomp_map_vars_internal) <GOMP_MAP_FIRSTPRIVATE>: Add
caveat/safeguard.
-rw-r--r-- | libgomp/target.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libgomp/target.c b/libgomp/target.c index 90b4204..b30c6a50 100644 --- a/libgomp/target.c +++ b/libgomp/target.c @@ -1396,6 +1396,11 @@ gomp_map_vars_internal (struct gomp_device_descr *devicep, { uintptr_t target = (uintptr_t) hostaddrs[i]; void *devptr = *(void**) hostaddrs[i+1] + sizes[i+1]; + /* Per + <https://inbox.sourceware.org/gcc-patches/87o7pe12ke.fsf@euler.schwinge.homeip.net> + "OpenMP: Handle descriptors in target's firstprivate [PR104949]" + this probably needs revision for 'aq' usage. */ + assert (!aq); gomp_copy_host2dev (devicep, aq, devptr, &target, sizeof (void *), false, cbufp); ++i; |