https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94251
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> --- Created attachment 48077 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48077&action=edit (Partial patch): Patch for gomp_load_image_to_device to handle link_flag correctly [Cross ref: nvptx disables the libgomp.c/target-link-1.c because of PR81689] Attached fixes the size check and the link vs not link for refcount. However, the big question is what be the target variable? (a) the variable itself such as 'c' with 'int c[27]' (b) a pointer to a variable such as 'c_linkptr' If (b), then the size check does not work and the the tgt side is a pointer. If (a), then the passed name does not fit. Jakub: How is this supposed to be implemented?