@@ -1,3 +1,8 @@
+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
@@ -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