diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2020-03-24 15:13:56 +0100 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2020-03-24 15:13:56 +0100 |
commit | c2211a60ff05b7a0289d3e287e72c181bb4d5d8b (patch) | |
tree | 0692a9266bb6d0e5689e60b5b6513a2a92dba37a /libgomp | |
parent | 906b3eb9df6c577d3f6e9c3ea5c9d7e4d1e90536 (diff) |
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.
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 5 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c/target-link-1.c | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index c90cbdcc711..7f5a1173eb9 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2020-03-24 Tobias Burnus <tobias@codesourcery.com> + + PR libgomp/81689 + * testsuite/libgomp.c/target-link-1.c: Remove xfail. + 2020-03-20 Tobias Burnus <tobias@codesourcery.com> PR libgomp/94251 diff --git a/libgomp/testsuite/libgomp.c/target-link-1.c b/libgomp/testsuite/libgomp.c/target-link-1.c index 99ce33bc9b4..681677cc2aa 100644 --- a/libgomp/testsuite/libgomp.c/target-link-1.c +++ b/libgomp/testsuite/libgomp.c/target-link-1.c @@ -1,6 +1,3 @@ -/* { dg-xfail-if "#pragma omp target link not implemented" { offload_target_nvptx } } - Cf. https://gcc.gnu.org/PR81689. */ - struct S { int s, t; }; int a = 1, b = 1; |