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.
#if __cplusplus >= 201703L
#include <any>
-#include <charconv>
// #include <execution>
#include <optional>
#include <variant>
// { dg-do run }
// { dg-additional-options "-pthread" { target pthread } }
+// { dg-require-effective-target hosted }
// Static init cannot detect recursion for gthreads targets without futexes
// (and the futex case can only detect it if __libc_single_threaded==true).
// { dg-options "-Wno-deprecated" }
// { dg-do run { target c++14_down } }
+// { dg-require-effective-target hosted }
#include <exception>
#include <cstdlib>
// { dg-do compile { target c++11 } }
+// { dg-require-effective-target hosted }
#include <scoped_allocator>
// { dg-options "-std=gnu++20" }
// { dg-do compile { target c++20 } }
+// { dg-require-effective-target hosted }
#include <memory>
// { dg-do run { target { c++11_only || c++14_only } } }
// { dg-require-atomic-builtins "" }
+// { dg-require-effective-target hosted }
// Copyright (C) 2012-2023 Free Software Foundation, Inc.
//