diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2024-05-11 09:24:33 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2024-05-19 14:33:16 +0100 |
commit | 1073469074ff132478ec8d923ed8635c672f7d9b (patch) | |
tree | f4a439eb1414a7b83243ba91759d36878368641a | |
parent | 0aa709ff9d4ca2f9794c4072d81bb68d784dd86c (diff) | |
download | gcc-1073469074ff132478ec8d923ed8635c672f7d9b.zip gcc-1073469074ff132478ec8d923ed8635c672f7d9b.tar.gz gcc-1073469074ff132478ec8d923ed8635c672f7d9b.tar.bz2 |
testsuite, C++, Darwin: Skip cxa_atexit-6, which is not applicable.
For Darwin, non-weak functions defined in a TU always bind locally
and so cxa_atexit-6.C is not applicable here.
PR testsuite/114982
gcc/testsuite/ChangeLog:
* g++.dg/tree-ssa/cxa_atexit-6.C: Skip for Darwin.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
-rw-r--r-- | gcc/testsuite/g++.dg/tree-ssa/cxa_atexit-6.C | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/tree-ssa/cxa_atexit-6.C b/gcc/testsuite/g++.dg/tree-ssa/cxa_atexit-6.C index f6599a3..e220360 100644 --- a/gcc/testsuite/g++.dg/tree-ssa/cxa_atexit-6.C +++ b/gcc/testsuite/g++.dg/tree-ssa/cxa_atexit-6.C @@ -2,10 +2,14 @@ /* { dg-require-effective-target fpic } */ /* { dg-options "-O2 -fdump-tree-cddce1-details -fdump-tree-optimized -fPIC" } */ // { dg-require-effective-target cxa_atexit } +/* This test is not appropriate for targets where non-weak functions defined + in the TU always bind locally; see PR114982. */ +/* { dg-skip-if "PR114982" { *-*-darwin* } } */ /* PR tree-optimization/19661 */ /* The call to axexit should not be removed as A::~A() cannot be figured if it - is a pure/const function call as the function call g does not bind locally. */ + is a pure/const function call for platforms where the function call g does + not bind locally. */ __attribute__((noinline)) void g() {} |