diff options
author | Julian Brown <julian@codesourcery.com> | 2019-09-16 13:02:31 -0700 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2020-03-03 12:51:25 +0100 |
commit | 28378bcabf080562ade1f97e2f78f93d05df3077 (patch) | |
tree | 4975eb7c85b797eed74510068852d94d2b12e45f /libgomp | |
parent | 9dc4701282f2069974f3689e0e25844a40aae445 (diff) | |
download | gcc-28378bcabf080562ade1f97e2f78f93d05df3077.zip gcc-28378bcabf080562ade1f97e2f78f93d05df3077.tar.gz gcc-28378bcabf080562ade1f97e2f78f93d05df3077.tar.bz2 |
[og9] Fix uninitialised read in gomp_map_vars_internal
libgomp/
* target.c (gomp_map_vars_internal): Remove read of uninitialised
data.
(cherry picked from openacc-gcc-9-branch commit
dce6d63aa6d598939b36ac968aa9aa48eaf5f3a2)
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog.omp | 5 | ||||
-rw-r--r-- | libgomp/target.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp index 1a624af..41e05e9 100644 --- a/libgomp/ChangeLog.omp +++ b/libgomp/ChangeLog.omp @@ -1,5 +1,10 @@ 2019-09-17 Julian Brown <julian@codesourcery.com> + * target.c (gomp_map_vars_internal): Remove read of uninitialised + data. + +2019-09-17 Julian Brown <julian@codesourcery.com> + * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Only run NVidia-specific test on NVidia hardware. * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c (main): diff --git a/libgomp/target.c b/libgomp/target.c index 5f7f946..0656df1 100644 --- a/libgomp/target.c +++ b/libgomp/target.c @@ -1556,8 +1556,7 @@ gomp_map_vars_internal (struct gomp_device_descr *devicep, kind & typemask, cbufp); else { - if (k->virtual_refcount == VREFCOUNT_LINK_KEY) - k->u.link_key = NULL; + k->u.link_key = NULL; if (n && n->refcount == REFCOUNT_LINK) { /* Replace target address of the pointer with target address |