diff options
author | Thomas Schwinge <tschwinge@baylibre.com> | 2025-07-18 12:56:13 +0200 |
---|---|---|
committer | Thomas Schwinge <tschwinge@baylibre.com> | 2025-07-21 16:28:47 +0200 |
commit | fe9faa20d37be3cfc15d82420ab7193c7dfc2b05 (patch) | |
tree | 895b103d7e59851da0f24efad7211a77d96cb386 /gcc/coverage.c | |
parent | facd61f0b57f20a01d35eb8b7abeae11c2e18371 (diff) | |
download | gcc-fe9faa20d37be3cfc15d82420ab7193c7dfc2b05.zip gcc-fe9faa20d37be3cfc15d82420ab7193c7dfc2b05.tar.gz gcc-fe9faa20d37be3cfc15d82420ab7193c7dfc2b05.tar.bz2 |
Adjust 'libgomp.c++/target-cdtor-{1,2}.C' for 'targetm.cxx.use_aeabi_atexit' [PR119853, PR119854]
Fix-up for commit aafe942227baf8c2bcd4cac2cb150e49a4b895a9
"GCN, nvptx offloading: Host/device compatibility: Itanium C++ ABI, DSO Object Destruction API [PR119853, PR119854]":
we need to adjust for 'targetm.cxx.use_aeabi_atexit':
gcc/config/arm/arm.cc:#define TARGET_CXX_USE_AEABI_ATEXIT arm_cxx_use_aeabi_atexit
gcc/config/arm/arm.cc:/* The EABI says __aeabi_atexit should be used to register static
gcc/config/arm/arm.cc- destructors. */
gcc/config/arm/arm.cc-
gcc/config/arm/arm.cc-static bool
gcc/config/arm/arm.cc:arm_cxx_use_aeabi_atexit (void)
gcc/config/arm/arm.cc-{
gcc/config/arm/arm.cc- return TARGET_AAPCS_BASED;
gcc/config/arm/arm.cc-}
..., which 'gcc/cp/decl.cc:get_atexit_node' then acts on: call '__aeabi_atexit'
instead of '__cxa_atexit', and swap two arguments.
PR target/119853
PR target/119854
libgomp/
* testsuite/libgomp.c++/target-cdtor-1.C: Adjust for
'targetm.cxx.use_aeabi_atexit'.
* testsuite/libgomp.c++/target-cdtor-2.C: Likewise.
(cherry picked from commit 04b42c4245d85f77aa54ec002ebd7bbe6fde5f11)
Diffstat (limited to 'gcc/coverage.c')
0 files changed, 0 insertions, 0 deletions