Fix OpenMP offload handling for target-link variables for nvptx (PR81689)
authorTobias Burnus <tobias@codesourcery.com>
Tue, 24 Mar 2020 14:13:56 +0000 (15:13 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 24 Mar 2020 14:13:56 +0000 (15:13 +0100)
commitc2211a60ff05b7a0289d3e287e72c181bb4d5d8b
tree0692a9266bb6d0e5689e60b5b6513a2a92dba37a
parent906b3eb9df6c577d3f6e9c3ea5c9d7e4d1e90536
Fix OpenMP offload handling for target-link variables for nvptx (PR81689)

PR libgomp/81689
* lto.c (offload_handle_link_vars): Propagate TREE_PUBLIC state.

PR libgomp/81689
* omp-offload.c (omp_finish_file): Fix target-link handling if
targetm_common.have_named_sections is false.

PR libgomp/81689
* testsuite/libgomp.c/target-link-1.c: Remove xfail.
gcc/ChangeLog
gcc/lto/ChangeLog
gcc/lto/lto.c
gcc/omp-offload.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/target-link-1.c