[Bug lto/94848] [Offloading][LTO] error due to only partially eliminated var / -ftree-pre causes link errors | libgomp.fortran/use_device_ptr-optional-3.f90 failures
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 15 09:07:14 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94848
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Tobias Burnus
<burnus@gcc.gnu.org>:
https://gcc.gnu.org/g:9074deee2c5039ff26c8587cc598bc658d8ff32f
commit r10-8305-g9074deee2c5039ff26c8587cc598bc658d8ff32f
Author: Tobias Burnus <tobias@codesourcery.com>
Date: Mon Jun 8 23:24:57 2020 +0200
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)
More information about the Gcc-bugs
mailing list