]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: enable use of cxa_atexit on abi tag18a test
authorAlexandre Oliva <oliva@adacore.com>
Wed, 21 Jan 2026 03:29:58 +0000 (00:29 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 21 Jan 2026 03:29:58 +0000 (00:29 -0300)
The _ZZZ1fB7__test1vEN1T1gEvE1x symbol is only output with the ABI tag
when cxa_atexit is available for use.  On targets that default to
-fno-use-cxa-atexit, the test fails gratuitously.  Add an explicit
-fuse-cxa-atexit, along with a requirement for cxa_atexit support.

for  gcc/testsuite/ChangeLog

* g++.dg/abi/abi-tag18a.C: Require and enable cxa_atexit.

gcc/testsuite/g++.dg/abi/abi-tag18a.C

index 392abf78062ac45700f24e403ec66a3cd14e11d2..57e4c6d4222a7f08730977b8ed684ed2ed67a2a8 100644 (file)
@@ -1,5 +1,7 @@
 // { dg-skip-if "PR 70349" { hppa*-*-hpux* } }
 // { dg-options "-fabi-version=9 -fno-implicit-constexpr" }
+// { dg-require-effective-target cxa_atexit }
+// { dg-additional-options "-fuse-cxa-atexit" }
 // { dg-final { scan-assembler "_Z1fB7__test1v" } }
 // { dg-final { scan-assembler "_ZZ1fB7__test1vEN1T1gB7__test2Ev" } }
 // { dg-final { scan-assembler "_ZZZ1fB7__test1vEN1T1gEvE1x" } }