aboutsummaryrefslogtreecommitdiff
path: root/config/lib-link.m4
diff options
context:
space:
mode:
authorTobias Burnus <tobias@codesourcery.com>2023-05-12 16:27:40 +0200
committerChung-Lin Tang <cltang@codesourcery.com>2023-05-18 02:39:49 -0700
commit17c41b39078fc8ad67fd1b82f74ef5174f34452e (patch)
tree9774a0384f7b8da9f571edf59e00775d4cc014ba /config/lib-link.m4
parent0171e1652f153f6b2a5506cc3b7073e1f0dacfa0 (diff)
downloadgcc-17c41b39078fc8ad67fd1b82f74ef5174f34452e.zip
gcc-17c41b39078fc8ad67fd1b82f74ef5174f34452e.tar.gz
gcc-17c41b39078fc8ad67fd1b82f74ef5174f34452e.tar.bz2
LTO: Fix writing of toplevel asm with offloading [PR109816]
When offloading was enabled, top-level 'asm' were added to the offloading section, confusing assemblers which did not support the syntax. Additionally, with offloading and -flto, the top-level assembler code did not end up in the host files. As r14-321-g9a41d2cdbcd added top-level 'asm' to one libstdc++ header file, the issue became more apparent, causing fails with nvptx for some C++ testcases. PR libstdc++/109816 gcc/ChangeLog: * lto-cgraph.cc (output_symtab): Guard lto_output_toplevel_asms by '!lto_stream_offload_p'. libgomp/ChangeLog: * testsuite/libgomp.c++/target-map-class-1.C: New test. * testsuite/libgomp.c++/target-map-class-2.C: New test. (cherry picked from commit a835f046cdf017b9e8ad5576df4f10daaf8420d0)
Diffstat (limited to 'config/lib-link.m4')
0 files changed, 0 insertions, 0 deletions