]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Fix some freestanding test failures
authorArsen Arsenović <arsen@aarsen.me>
Tue, 4 Apr 2023 21:24:52 +0000 (23:24 +0200)
committerArsen Arsenović <arsen@aarsen.me>
Wed, 5 Apr 2023 16:45:15 +0000 (18:45 +0200)
commit3bfd0420e4a17a82454ed3bdadc0f5d362d9b636
treefbb024b74bc6e92d939b6cfc8d1a639d6049159f
parentbff26ac162772313d3d9b8ce952b5a0846e26878
libstdc++: Fix some freestanding test failures

At some point, <charconv> was added to the non-hosted bit of the C++17
block, which induced failures in many tests.

In addition, some tests also lacked a dg-require-effective-target hosted
tag.

libstdc++-v3/ChangeLog:

* include/precompiled/stdc++.h (C++17): Don't double-include
<charconv>, once with wrong conditions.
* testsuite/18_support/96817.cc: Require hosted.
* testsuite/18_support/bad_exception/59392.cc: Ditto.
* testsuite/20_util/scoped_allocator/108952.cc: Ditto.
* testsuite/20_util/uses_allocator/lwg3527.cc: Ditto.
* testsuite/29_atomics/atomic/operators/pointer_partial_void.cc:
Ditto.
libstdc++-v3/include/precompiled/stdc++.h
libstdc++-v3/testsuite/18_support/96817.cc
libstdc++-v3/testsuite/18_support/bad_exception/59392.cc
libstdc++-v3/testsuite/20_util/scoped_allocator/108952.cc
libstdc++-v3/testsuite/20_util/uses_allocator/lwg3527.cc
libstdc++-v3/testsuite/29_atomics/atomic/operators/pointer_partial_void.cc