]> git.ipfire.org Git - thirdparty/gcc.git/commit
openmp: ensure variables in offload table are streamed out (PRs 94848 + 95551)
authorTobias Burnus <tobias@codesourcery.com>
Mon, 8 Jun 2020 21:24:57 +0000 (23:24 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Mon, 15 Jun 2020 09:05:56 +0000 (11:05 +0200)
commit9074deee2c5039ff26c8587cc598bc658d8ff32f
treec0ffde024c90813e18de9f512714af51b1412fb2
parent0a274fa150fea4c6d66e7ee3a950d1659c9f1a14
openmp: ensure variables in offload table are streamed out (PRs 94848 + 95551)

gcc/ChangeLog:

PR lto/94848
PR middle-end/95551
* omp-offload.c (add_decls_addresses_to_decl_constructor,
omp_finish_file): Skip removed items.
* lto-cgraph.c (output_offload_tables): Likewise; set force_output
to this node for variables and functions.

libgomp/ChangeLog:

PR lto/94848
PR middle-end/95551
* testsuite/libgomp.fortran/target-var.f90: New test.

(cherry picked from commit 1c0fdaf79e3618fd7512608a2e5c62b6b306e9e8)
gcc/lto-cgraph.c
gcc/omp-offload.c
libgomp/testsuite/libgomp.fortran/target-var.f90 [new file with mode: 0644]