diff options
author | Alexandre Oliva <oliva@adacore.com> | 2024-06-26 02:08:27 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2024-06-26 02:08:27 -0300 |
commit | eed2027843409bf3afd03053d95760bdacb8fbf6 (patch) | |
tree | 58f5a2a3587f37240303de64bccbb9c05db44243 | |
parent | 54d2339c9f87f702e02e571a5460e11c19e1c02f (diff) |
[libstdc++] [testsuite] no libatomic for vxworks
libatomic hasn't been ported to vxworks. Most of the stdatomic.h and
<atomic> underlying requirements are provided by builtins and libgcc,
and the vxworks libc already provides remaining __atomic symbols, so
porting libatomic doesn't seem to make sense.
However, some of the target arch-only tests in
add_options_for_libatomic cover vxworks targets, so we end up
attempting to link libatomic in, even though it's not there.
Preempt those too-broad tests.
Co-Authored-By: Marc Poulhiès <poulhies@adacore.com>
for libstdc++-v3/ChangeLog
* testsuite/lib/dg-options.exp (add_options_for_libatomic):
None for *-*-vxworks*.
-rw-r--r-- | libstdc++-v3/testsuite/lib/dg-options.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/lib/dg-options.exp b/libstdc++-v3/testsuite/lib/dg-options.exp index 84f9e3ebc73..0d77fb029b0 100644 --- a/libstdc++-v3/testsuite/lib/dg-options.exp +++ b/libstdc++-v3/testsuite/lib/dg-options.exp @@ -338,6 +338,11 @@ proc atomic_link_flags { paths } { } proc add_options_for_libatomic { flags } { + # We don't (need to) build libatomic for vxworks. Don't try to + # link it in, even on arches that support libatomic. + if { [istarget *-*-vxworks*] } { + return $flags + } if { [istarget hppa*-*-hpux*] || ([istarget powerpc*-*-*] && [check_effective_target_ilp32]) || [istarget riscv*-*-*] |