]> git.ipfire.org Git - thirdparty/gcc.git/commit
[libstdc++] [testsuite] no libatomic for vxworks
authorAlexandre Oliva <oliva@adacore.com>
Wed, 26 Jun 2024 05:08:27 +0000 (02:08 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 26 Jun 2024 05:08:27 +0000 (02:08 -0300)
commiteed2027843409bf3afd03053d95760bdacb8fbf6
tree58f5a2a3587f37240303de64bccbb9c05db44243
parent54d2339c9f87f702e02e571a5460e11c19e1c02f
[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*.
libstdc++-v3/testsuite/lib/dg-options.exp