public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/aoliva/heads/testme)] testsuite: introduce hostedlib effective target
@ 2023-11-19  4:44 Alexandre Oliva
  0 siblings, 0 replies; 17+ messages in thread
From: Alexandre Oliva @ 2023-11-19  4:44 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:e1357d7b9682f04ff27906e9d0a11026a55382d8

commit e1357d7b9682f04ff27906e9d0a11026a55382d8
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Tue Nov 14 22:16:27 2023 -0300

    testsuite: introduce hostedlib effective target
    
    Several C++ tests fail with --disable-hosted-libstdcxx, whether
    because stdc++ext gets linked in despite not being built, because
    standard headers are included but that are unavailable in this mode,
    or because headers are (mistakenly?) expected to introduce
    declarations such as for ::abort, but in this mode they don't.
    
    This patch introduces an effective target for GCC test, equivalent to
    one that's available in the libstdc++-v3 testsuite, and arranges for
    all such tests to be skipped when libstdc++-v3 is not hosted.
    
    
    Co-Authored-By: Olivier Hainque <hainque@adacore.com>
    
    for  gcc/ChangeLog
    
            * doc/sourcebuild.texi (hostedlib): New effective target.
    
    for  gcc/testsuite/ChangeLog
    
            * lib/target-supports.exp (check_effective_target_hostedlib):
            New.
            * g++.dg/contracts/contracts-access1.C: Skip if !hostedlib
            because of libstdc++exp.
            * g++.dg/contracts/contracts-assume3.C: Likewise.
            * g++.dg/contracts/contracts-assume4.C: Likewise.
            * g++.dg/contracts/contracts-config1.C: Likewise.
            * g++.dg/contracts/contracts-constexpr1.C: Likewise.
            * g++.dg/contracts/contracts-deduced2.C: Likewise.
            * g++.dg/contracts/contracts-externC.C: Likewise.
            * g++.dg/contracts/contracts-friend1.C: Likewise.
            * g++.dg/contracts/contracts-multiline1.C: Likewise.
            * g++.dg/contracts/contracts-nested-class2.C: Likewise.
            * g++.dg/contracts/contracts-post2.C: Likewise.
            * g++.dg/contracts/contracts-post3.C: Likewise.
            * g++.dg/contracts/contracts-pre2a2.C: Likewise.
            * g++.dg/contracts/contracts10.C: Likewise.
            * g++.dg/contracts/contracts18.C: Likewise.
            * g++.dg/contracts/contracts19.C: Likewise.
            * g++.dg/contracts/contracts2.C: Likewise.
            * g++.dg/contracts/contracts24.C: Likewise.
            * g++.dg/contracts/contracts25.C: Likewise.
            * g++.dg/contracts/contracts3.C: Likewise.
            * g++.dg/contracts/contracts4.C: Likewise.
            * g++.dg/contracts/contracts5.C: Likewise.
            * g++.dg/contracts/contracts6.C: Likewise.
            * g++.dg/contracts/contracts7.C: Likewise.
            * g++.dg/contracts/contracts9.C: Likewise.
            * g++.dg/pch/system-1.C: Skip if !hostedlib because of
            unavailable headers.
            * g++.dg/pch/system-2.C: Likewise.
            * c-c++-common/pr36513-2.c: Likewise.
            * g++.dg/analyzer/pr93212.C: Likewise.
            * g++.dg/concepts/expression.C: Likewise.
            * g++.dg/concepts/fn3.C: Likewise.
            * g++.dg/concepts/fn9.C: Likewise.
            * g++.dg/concepts/generic-fn.C: Likewise.
            * g++.dg/concepts/intro2.C: Likewise.
            * g++.dg/contracts/contracts-assume2.C: Likewise.
            * g++.dg/contracts/contracts-ignore2.C: Likewise.
            * g++.dg/contracts/contracts-pre10.C: Likewise.
            * g++.dg/contracts/contracts-pre2.C: Likewise.
            * g++.dg/contracts/contracts-pre3.C: Likewise.
            * g++.dg/contracts/contracts-pre4.C: Likewise.
            * g++.dg/contracts/contracts-pre5.C: Likewise.
            * g++.dg/contracts/contracts-pre7.C: Likewise.
            * g++.dg/contracts/contracts-pre9.C: Likewise.
            * g++.dg/contracts/contracts-redecl3.C: Likewise.
            * g++.dg/contracts/contracts-redecl4.C: Likewise.
            * g++.dg/contracts/contracts-redecl6.C: Likewise.
            * g++.dg/contracts/contracts-redecl7.C: Likewise.
            * g++.dg/contracts/contracts-tmpl-spec1.C: Likewise.
            * g++.dg/contracts/contracts-tmpl-spec2.C: Likewise.
            * g++.dg/contracts/contracts-tmpl-spec3.C: Likewise.
            * g++.dg/contracts/contracts14.C: Likewise.
            * g++.dg/contracts/contracts15.C: Likewise.
            * g++.dg/contracts/contracts16.C: Likewise.
            * g++.dg/contracts/contracts17.C: Likewise.
            * g++.dg/contracts/contracts22.C: Likewise.
            * g++.dg/contracts/contracts35.C: Likewise.
            * g++.dg/coroutines/pr100611.C: Likewise.
            * g++.dg/coroutines/pr101367.C: Likewise.
            * g++.dg/coroutines/pr101976.C: Likewise.
            * g++.dg/coroutines/pr102454.C: Likewise.
            * g++.dg/coroutines/pr104051.C: Likewise.
            * g++.dg/coroutines/pr94288.C: Likewise.
            * g++.dg/coroutines/pr95520.C: Likewise.
            * g++.dg/coroutines/pr97587.C: Likewise.
            * g++.dg/coroutines/pr99576_1.C: Likewise.
            * g++.dg/coroutines/pr99576_2.C: Likewise.
            * g++.dg/coroutines/torture/co-await-16-template-traits.C: Likewise.
            * g++.dg/coroutines/torture/co-ret-15-default-return_void.C: Likewise.
            * g++.dg/coroutines/torture/co-yield-04-complex-local-state.C: Likewise.
            * g++.dg/coroutines/torture/func-params-08.C: Likewise.
            * g++.dg/coroutines/torture/func-params-09-awaitable-parms.C: Likewise.
            * g++.dg/coroutines/torture/local-var-05-awaitable.C: Likewise.
            * g++.dg/coroutines/torture/pr98704.C: Likewise.
            * g++.dg/cpp0x/Wliteral-suffix.C: Likewise.
            * g++.dg/cpp0x/Wpessimizing-move2.C: Likewise.
            * g++.dg/cpp0x/constexpr-70001-3.C: Likewise.
            * g++.dg/cpp0x/constexpr-ice16.C: Likewise.
            * g++.dg/cpp0x/dc5.C: Likewise.
            * g++.dg/cpp0x/enum35.C: Likewise.
            * g++.dg/cpp0x/enum36.C: Likewise.
            * g++.dg/cpp0x/initlist-opt1.C: Likewise.
            * g++.dg/cpp0x/initlist-vect2.C: Likewise.
            * g++.dg/cpp0x/initlist13.C: Likewise.
            * g++.dg/cpp0x/initlist15.C: Likewise.
            * g++.dg/cpp0x/initlist25.C: Likewise.
            * g++.dg/cpp0x/initlist54.C: Likewise.
            * g++.dg/cpp0x/initlist92.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-capture-const-ref-neg.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-capture-const-ref.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-const-neg.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-const.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-deduce.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-in-class-neg.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-in-class.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-mixed.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-mutable.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-nested.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-non-const.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-nop.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-nullptr.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-pass.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-recursive.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-ref-default.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-ref.C: Likewise.
            * g++.dg/cpp0x/nullptr20.C: Likewise.
            * g++.dg/cpp0x/pr61038.C: Likewise.
            * g++.dg/cpp0x/rv-trivial-bug.C: Likewise.
            * g++.dg/cpp0x/udlit-concat-neg.C: Likewise.
            * g++.dg/cpp0x/udlit-concat.C: Likewise.
            * g++.dg/cpp0x/udlit-embed-quote.C: Likewise.
            * g++.dg/cpp0x/udlit-general.C: Likewise.
            * g++.dg/cpp0x/udlit-namespace.C: Likewise.
            * g++.dg/cpp0x/udlit-raw-op.C: Likewise.
            * g++.dg/cpp0x/udlit-raw-str.C: Likewise.
            * g++.dg/cpp0x/udlit-resolve-char8_t.C: Likewise.
            * g++.dg/cpp0x/udlit-resolve.C: Likewise.
            * g++.dg/cpp0x/udlit-sfinae.C: Likewise.
            * g++.dg/cpp0x/udlit-suffix-neg.C: Likewise.
            * g++.dg/cpp0x/udlit-template.C: Likewise.
            * g++.dg/cpp0x/variadic-bind.C: Likewise.
            * g++.dg/cpp0x/variadic-function.C: Likewise.
            * g++.dg/cpp0x/variadic-mem_fn.C: Likewise.
            * g++.dg/cpp0x/variadic-tuple.C: Likewise.
            * g++.dg/cpp1y/auto-fn45.C: Likewise.
            * g++.dg/cpp1y/complex_literals1.C: Likewise.
            * g++.dg/cpp1y/complex_literals1a.C: Likewise.
            * g++.dg/cpp1y/constexpr-66093.C: Likewise.
            * g++.dg/cpp1y/constexpr-assert1.C: Likewise.
            * g++.dg/cpp1y/constexpr-assert2.C: Likewise.
            * g++.dg/cpp1y/lambda-generic-69078-2.C: Likewise.
            * g++.dg/cpp1y/lambda-generic-x.C: Likewise.
            * g++.dg/cpp1y/lambda-init8.C: Likewise.
            * g++.dg/cpp1y/new2.C: Likewise.
            * g++.dg/cpp1y/nsdmi-aggr12.C: Likewise.
            * g++.dg/cpp1y/pr57640.C: Likewise.
            * g++.dg/cpp1y/pr77786.C: Likewise.
            * g++.dg/cpp1y/pr95226.C: Likewise.
            * g++.dg/cpp1y/udlit-char-template-sfinae.C: Likewise.
            * g++.dg/cpp1y/udlit-char-template-vs-std-literal-operator.C: Likewise.
            * g++.dg/cpp1z/class-deduction14.C: Likewise.
            * g++.dg/cpp1z/decomp37.C: Likewise.
            * g++.dg/cpp1z/eval-order2.C: Likewise.
            * g++.dg/cpp1z/fold1.C: Likewise.
            * g++.dg/cpp1z/init-statement6.C: Likewise.
            * g++.dg/cpp1z/launder3.C: Likewise.
            * g++.dg/cpp1z/launder4.C: Likewise.
            * g++.dg/cpp1z/launder5.C: Likewise.
            * g++.dg/cpp1z/launder6.C: Likewise.
            * g++.dg/cpp1z/utf8.C: Likewise.
            * g++.dg/cpp2a/concepts-cmath.C: Likewise.
            * g++.dg/cpp2a/concepts-explicit-spec1.C: Likewise.
            * g++.dg/cpp2a/concepts-explicit-spec4.C: Likewise.
            * g++.dg/cpp2a/concepts-explicit-spec5.C: Likewise.
            * g++.dg/cpp2a/concepts-memfun.C: Likewise.
            * g++.dg/cpp2a/concepts-pr67774.C: Likewise.
            * g++.dg/cpp2a/cond-triv2.C: Likewise.
            * g++.dg/cpp2a/nontype-float1.C: Likewise.
            * g++.dg/diagnostic/disable.C: Likewise.
            * g++.dg/diagnostic/pr65923.C: Likewise.
            * g++.dg/eh/arm-vfp-unwind.C: Likewise.
            * g++.dg/eh/crossjump1.C: Likewise.
            * g++.dg/eh/omit-frame-pointer.C: Likewise.
            * g++.dg/eh/simd-3.C: Likewise.
            * g++.dg/ext/bases.C: Likewise.
            * g++.dg/ext/builtin-line1.C: Likewise.
            * g++.dg/ext/complex4.C: Likewise.
            * g++.dg/ext/has_nothrow_assign.C: Likewise.
            * g++.dg/ext/has_nothrow_assign_odr.C: Likewise.
            * g++.dg/ext/has_nothrow_constructor.C: Likewise.
            * g++.dg/ext/has_nothrow_constructor_odr.C: Likewise.
            * g++.dg/ext/has_nothrow_copy-1.C: Likewise.
            * g++.dg/ext/has_nothrow_copy-2.C: Likewise.
            * g++.dg/ext/has_nothrow_copy-3.C: Likewise.
            * g++.dg/ext/has_nothrow_copy-4.C: Likewise.
            * g++.dg/ext/has_nothrow_copy-5.C: Likewise.
            * g++.dg/ext/has_nothrow_copy-6.C: Likewise.
            * g++.dg/ext/has_nothrow_copy-7.C: Likewise.
            * g++.dg/ext/has_nothrow_copy_odr.C: Likewise.
            * g++.dg/ext/has_trivial_assign.C: Likewise.
            * g++.dg/ext/has_trivial_constructor.C: Likewise.
            * g++.dg/ext/has_trivial_copy.C: Likewise.
            * g++.dg/ext/has_trivial_destructor-1.C: Likewise.
            * g++.dg/ext/has_virtual_destructor.C: Likewise.
            * g++.dg/ext/is_abstract.C: Likewise.
            * g++.dg/ext/is_aggregate.C: Likewise.
            * g++.dg/ext/is_base_of.C: Likewise.
            * g++.dg/ext/is_class.C: Likewise.
            * g++.dg/ext/is_convertible2.C: Likewise.
            * g++.dg/ext/is_empty.C: Likewise.
            * g++.dg/ext/is_enum.C: Likewise.
            * g++.dg/ext/is_pod.C: Likewise.
            * g++.dg/ext/is_polymorphic.C: Likewise.
            * g++.dg/ext/is_union.C: Likewise.
            * g++.dg/ext/underlying_type10.C: Likewise.
            * g++.dg/ext/underlying_type4.C: Likewise.
            * g++.dg/inherit/virtual8.C: Likewise.
            * g++.dg/init/array4.C: Likewise.
            * g++.dg/init/new18.C: Likewise.
            * g++.dg/init/new39.C: Likewise.
            * g++.dg/init/new40.C: Likewise.
            * g++.dg/ipa/devirt-29.C: Likewise.
            * g++.dg/ipa/pr85549.C: Likewise.
            * g++.dg/lookup/missing-std-include-3.C: Likewise.
            * g++.dg/lookup/pr21802.C: Likewise.
            * g++.dg/lto/20091022-2_0.C: Likewise.
            * g++.dg/lto/20091219_0.C: Likewise.
            * g++.dg/lto/pr89358_0.C: Likewise.
            * g++.dg/lto/pr89358_1.C: Likewise.
            * g++.dg/modules/binding-1_a.H: Likewise.
            * g++.dg/modules/binding-1_b.H: Likewise.
            * g++.dg/modules/contracts-1_a.C: Likewise.
            * g++.dg/modules/contracts-1_b.C: Likewise.
            * g++.dg/modules/contracts-2_a.C: Likewise.
            * g++.dg/modules/contracts-2_b.C: Likewise.
            * g++.dg/modules/contracts-3_a.C: Likewise.
            * g++.dg/modules/contracts-3_b.C: Likewise.
            * g++.dg/modules/contracts-4_a.C: Likewise.
            * g++.dg/modules/contracts-4_d.C: Likewise.
            * g++.dg/modules/global-3_a.C: Likewise.
            * g++.dg/modules/hello-1_a.C: Likewise.
            * g++.dg/modules/iostream-1_a.H: Likewise.
            * g++.dg/modules/part-5_c.C: Likewise.
            * g++.dg/modules/string-1_a.H: Likewise.
            * g++.dg/modules/string-1_b.C: Likewise.
            * g++.dg/modules/string-view1.C: Likewise.
            * g++.dg/opt/nrv17.C: Likewise.
            * g++.dg/opt/pr102970.C: Likewise.
            * g++.dg/opt/pr109434.C: Likewise.
            * g++.dg/opt/pr15551.C: Likewise.
            * g++.dg/opt/pr30965.C: Likewise.
            * g++.dg/opt/pr77844.C: Likewise.
            * g++.dg/opt/pr85393.C: Likewise.
            * g++.dg/other/final7.C: Likewise.
            * g++.dg/other/pr40561.C: Likewise.
            * g++.dg/parse/parse5.C: Likewise.
            * g++.dg/pr100253.C: Likewise.
            * g++.dg/pr104547.C: Likewise.
            * g++.dg/pr107087.C: Likewise.
            * g++.dg/pr71488.C: Likewise.
            * g++.dg/pr71655.C: Likewise.
            * g++.dg/pr79095-3.C: Likewise.
            * g++.dg/pr83239.C: Likewise.
            * g++.dg/pr99966.C: Likewise.
            * g++.dg/rtti/typeid4.C: Likewise.
            * g++.dg/spellcheck-inttypes.C: Likewise.
            * g++.dg/template/friend10.C: Likewise.
            * g++.dg/template/pr69961a.C: Likewise.
            * g++.dg/template/show-template-tree-3.C: Likewise.
            * g++.dg/torture/alias-1.C: Likewise.
            * g++.dg/torture/builtin-location.C: Likewise.
            * g++.dg/torture/pr103669.C: Likewise.
            * g++.dg/torture/pr104601.C: Likewise.
            * g++.dg/torture/pr106922.C: Likewise.
            * g++.dg/torture/pr111019.C: Likewise.
            * g++.dg/torture/pr33572.C: Likewise.
            * g++.dg/torture/pr33735.C: Likewise.
            * g++.dg/torture/pr34099.C: Likewise.
            * g++.dg/torture/pr39417.C: Likewise.
            * g++.dg/torture/pr44972.C: Likewise.
            * g++.dg/torture/pr46364.C: Likewise.
            * g++.dg/torture/pr49628.C: Likewise.
            * g++.dg/torture/pr51903.C: Likewise.
            * g++.dg/torture/pr54498.C: Likewise.
            * g++.dg/torture/pr60750.C: Likewise.
            * g++.dg/torture/pr67600.C: Likewise.
            * g++.dg/torture/pr82084.C: Likewise.
            * g++.dg/torture/pr95493-1.C: Likewise.
            * g++.dg/tree-ssa/allocator-opt1.C: Likewise.
            * g++.dg/tree-ssa/empty-loop.C: Likewise.
            * g++.dg/tree-ssa/initlist-opt1.C: Likewise.
            * g++.dg/tree-ssa/initlist-opt2.C: Likewise.
            * g++.dg/tree-ssa/initlist-opt3.C: Likewise.
            * g++.dg/tree-ssa/loop-cond-split-1.C: Likewise.
            * g++.dg/tree-ssa/pr101839.C: Likewise.
            * g++.dg/tree-ssa/pr104529.C: Likewise.
            * g++.dg/tree-ssa/pr14703.C: Likewise.
            * g++.dg/tree-ssa/pr19786.C: Likewise.
            * g++.dg/tree-ssa/pr46228.C: Likewise.
            * g++.dg/tree-ssa/pr63841.C: Likewise.
            * g++.dg/tree-ssa/pr69336.C: Likewise.
            * g++.dg/tree-ssa/pr78847.C: Likewise.
            * g++.dg/tree-ssa/pr95638.C: Likewise.
            * g++.dg/warn/Warray-bounds-27.C: Likewise.
            * g++.dg/warn/Wdangling-pointer-pr110055.C: Likewise.
            * g++.dg/warn/Wdangling-reference10.C: Likewise.
            * g++.dg/warn/Wdangling-reference4.C: Likewise.
            * g++.dg/warn/Wdangling-reference5.C: Likewise.
            * g++.dg/warn/Winline-3.C: Likewise.
            * g++.dg/warn/Wmemset-elt-size1.C: Likewise.
            * g++.dg/warn/Wstrict-aliasing-bogus-escape-2.C: Likewise.
            * g++.dg/warn/Wstrict-aliasing-bogus-escape.C: Likewise.
            * g++.dg/warn/Wstringop-overflow-8.C: Likewise.
            * g++.dg/warn/Wstringop-overread-1.C: Likewise.
            * g++.dg/warn/Wuninitialized-33.C: Likewise.
            * g++.dg/warn/format1.C: Likewise.
            * g++.dg/warn/string1.C: Likewise.
            * g++.dg/warn/uninit-pr105562.C: Likewise.
            * g++.old-deja/g++.benjamin/15071.C: Likewise.
            * g++.old-deja/g++.brendan/copy9.C: Likewise.
            * g++.old-deja/g++.brendan/crash15.C: Likewise.
            * g++.old-deja/g++.brendan/crash20.C: Likewise.
            * g++.old-deja/g++.brendan/crash30.C: Likewise.
            * g++.old-deja/g++.brendan/crash38.C: Likewise.
            * g++.old-deja/g++.brendan/crash39.C: Likewise.
            * g++.old-deja/g++.brendan/crash49.C: Likewise.
            * g++.old-deja/g++.brendan/crash52.C: Likewise.
            * g++.old-deja/g++.brendan/crash62.C: Likewise.
            * g++.old-deja/g++.brendan/cvt1.C: Likewise.
            * g++.old-deja/g++.brendan/err-msg3.C: Likewise.
            * g++.old-deja/g++.brendan/nest21.C: Likewise.
            * g++.old-deja/g++.brendan/ptolemy2.C: Likewise.
            * g++.old-deja/g++.jason/template24.C: Likewise.
            * g++.old-deja/g++.jason/template31.C: Likewise.
            * g++.old-deja/g++.jason/typeid1.C: Likewise.
            * g++.old-deja/g++.law/arg1.C: Likewise.
            * g++.old-deja/g++.law/arg8.C: Likewise.
            * g++.old-deja/g++.law/arm12.C: Likewise.
            * g++.old-deja/g++.law/arm9.C: Likewise.
            * g++.old-deja/g++.law/bad-error7.C: Likewise.
            * g++.old-deja/g++.law/code-gen5.C: Likewise.
            * g++.old-deja/g++.law/ctors10.C: Likewise.
            * g++.old-deja/g++.law/ctors12.C: Likewise.
            * g++.old-deja/g++.law/ctors13.C: Likewise.
            * g++.old-deja/g++.law/ctors17.C: Likewise.
            * g++.old-deja/g++.law/ctors6.C: Likewise.
            * g++.old-deja/g++.law/cvt16.C: Likewise.
            * g++.old-deja/g++.law/cvt2.C: Likewise.
            * g++.old-deja/g++.law/cvt7.C: Likewise.
            * g++.old-deja/g++.law/except5.C: Likewise.
            * g++.old-deja/g++.law/missed-error2.C: Likewise.
            * g++.old-deja/g++.law/nest3.C: Likewise.
            * g++.old-deja/g++.law/operators32.C: Likewise.
            * g++.old-deja/g++.law/operators4.C: Likewise.
            * g++.old-deja/g++.law/vbase1.C: Likewise.
            * g++.old-deja/g++.law/virtual3.C: Likewise.
            * g++.old-deja/g++.law/visibility1.C: Likewise.
            * g++.old-deja/g++.law/visibility10.C: Likewise.
            * g++.old-deja/g++.law/visibility13.C: Likewise.
            * g++.old-deja/g++.law/visibility17.C: Likewise.
            * g++.old-deja/g++.law/visibility2.C: Likewise.
            * g++.old-deja/g++.law/visibility22.C: Likewise.
            * g++.old-deja/g++.law/visibility25.C: Likewise.
            * g++.old-deja/g++.law/visibility7.C: Likewise.
            * g++.old-deja/g++.martin/new1.C: Likewise.
            * g++.old-deja/g++.mike/dyncast7.C: Likewise.
            * g++.old-deja/g++.mike/eh13.C: Likewise.
            * g++.old-deja/g++.mike/eh2.C: Likewise.
            * g++.old-deja/g++.mike/net34.C: Likewise.
            * g++.old-deja/g++.mike/net46.C: Likewise.
            * g++.old-deja/g++.mike/p658.C: Likewise.
            * g++.old-deja/g++.mike/rtti1.C: Likewise.
            * g++.old-deja/g++.ns/using4.C: Likewise.
            * g++.old-deja/g++.ns/using6.C: Likewise.
            * g++.old-deja/g++.other/defarg6.C: Likewise.
            * g++.old-deja/g++.other/headers1.C: Likewise.
            * g++.old-deja/g++.other/init9.C: Likewise.
            * g++.old-deja/g++.other/inline14.C: Likewise.
            * g++.old-deja/g++.other/inline2.C: Likewise.
            * g++.old-deja/g++.other/inline7.C: Likewise.
            * g++.old-deja/g++.other/inline8.C: Likewise.
            * g++.old-deja/g++.other/optimize2.C: Likewise.
            * g++.old-deja/g++.other/sibcall1.C: Likewise.
            * g++.old-deja/g++.other/unchanging1.C: Likewise.
            * g++.old-deja/g++.pt/crash68.C: Likewise.
            * g++.old-deja/g++.pt/memtemp100.C: Likewise.
            * g++.old-deja/g++.robertl/eb109.C: Likewise.
            * g++.old-deja/g++.robertl/eb113.C: Likewise.
            * g++.old-deja/g++.robertl/eb115.C: Likewise.
            * g++.old-deja/g++.robertl/eb124.C: Likewise.
            * g++.old-deja/g++.robertl/eb127.C: Likewise.
            * g++.old-deja/g++.robertl/eb129.C: Likewise.
            * g++.old-deja/g++.robertl/eb129a.C: Likewise.
            * g++.old-deja/g++.robertl/eb130.C: Likewise.
            * g++.old-deja/g++.robertl/eb132.C: Likewise.
            * g++.old-deja/g++.robertl/eb15.C: Likewise.
            * g++.old-deja/g++.robertl/eb21.C: Likewise.
            * g++.old-deja/g++.robertl/eb24.C: Likewise.
            * g++.old-deja/g++.robertl/eb27.C: Likewise.
            * g++.old-deja/g++.robertl/eb28.C: Likewise.
            * g++.old-deja/g++.robertl/eb29.C: Likewise.
            * g++.old-deja/g++.robertl/eb3.C: Likewise.
            * g++.old-deja/g++.robertl/eb30.C: Likewise.
            * g++.old-deja/g++.robertl/eb31.C: Likewise.
            * g++.old-deja/g++.robertl/eb33.C: Likewise.
            * g++.old-deja/g++.robertl/eb36.C: Likewise.
            * g++.old-deja/g++.robertl/eb39.C: Likewise.
            * g++.old-deja/g++.robertl/eb4.C: Likewise.
            * g++.old-deja/g++.robertl/eb41.C: Likewise.
            * g++.old-deja/g++.robertl/eb43.C: Likewise.
            * g++.old-deja/g++.robertl/eb44.C: Likewise.
            * g++.old-deja/g++.robertl/eb46.C: Likewise.
            * g++.old-deja/g++.robertl/eb54.C: Likewise.
            * g++.old-deja/g++.robertl/eb55.C: Likewise.
            * g++.old-deja/g++.robertl/eb59.C: Likewise.
            * g++.old-deja/g++.robertl/eb60.C: Likewise.
            * g++.old-deja/g++.robertl/eb62.C: Likewise.
            * g++.old-deja/g++.robertl/eb66.C: Likewise.
            * g++.old-deja/g++.robertl/eb7.C: Likewise.
            * g++.old-deja/g++.robertl/eb73.C: Likewise.
            * g++.old-deja/g++.robertl/eb77.C: Likewise.
            * g++.old-deja/g++.robertl/eb79.C: Likewise.
            * g++.old-deja/g++.warn/iomanip.C: Likewise.
            * g++.dg/analyzer/vfunc-2.C: Likewise.
            * g++.dg/coroutines/pr100772-b.C: Likewise.
            * g++.dg/coroutines/pr101133.C: Likewise.
            * g++.dg/coroutines/pr95736.C: Likewise.
            * g++.dg/coroutines/ramp-return-a.C: Likewise.
            * g++.dg/coroutines/ramp-return-b.C: Likewise.
            * g++.dg/coroutines/ramp-return-c.C: Likewise.
            * g++.dg/coroutines/torture/extern-c-coroutine.C: Likewise.
            * g++.dg/coroutines/torture/pr95615-01.C: Likewise.
            * g++.dg/coroutines/torture/pr95615-02.C: Likewise.
            * g++.dg/coroutines/torture/pr95615-03.C: Likewise.
            * g++.dg/coroutines/torture/pr95615-04.C: Likewise.
            * g++.dg/coroutines/torture/pr95615-05.C: Likewise.
            * g++.dg/cpp0x/udlit-string-literal.C: Likewise.
            * g++.dg/cpp1y/udlit-userdef-string.C: Likewise.
            * g++.dg/modules/xtreme-header-1_a.H: Likewise.
            * g++.dg/modules/xtreme-header-1_b.C: Likewise.
            * g++.dg/modules/xtreme-header-2_a.H: Likewise.
            * g++.dg/modules/xtreme-header-2_b.C: Likewise.
            * g++.dg/modules/xtreme-header-3_a.H: Likewise.
            * g++.dg/modules/xtreme-header-3_b.C: Likewise.
            * g++.dg/modules/xtreme-header-4_a.H: Likewise.
            * g++.dg/modules/xtreme-header-4_b.C: Likewise.
            * g++.dg/modules/xtreme-header-5_a.H: Likewise.
            * g++.dg/modules/xtreme-header-5_b.C: Likewise.
            * g++.dg/modules/xtreme-header-6_a.H: Likewise.
            * g++.dg/modules/xtreme-header-6_b.C: Likewise.
            * g++.dg/modules/xtreme-header_a.H: Likewise.
            * g++.dg/modules/xtreme-header_b.C: Likewise.
            * g++.dg/modules/xtreme-tr1_a.H: Likewise.
            * g++.dg/modules/xtreme-tr1_b.C: Likewise.
            * g++.dg/opt/dtor4-aux.cc: Likewise.
            * g++.dg/opt/dtor4.C: Likewise.
            * g++.dg/parse/lookup1.C: Likewise.
            * g++.dg/torture/pr49938.C: Likewise.
            * g++.dg/warn/Wfree-nonheap-object-3.C: Likewise.
            * g++.dg/warn/Wstringop-overflow-6.C: Likewise.
            * g++.dg/coroutines/pr101765.C: Skip in !hostedlib because of
            unavailable ::abort in cstdlib.
            * g++.dg/coroutines/pr95477.C: Likewise.
            * g++.dg/coroutines/pr95599.C: Likewise.
            * g++.dg/coroutines/pr95711.C: Likewise.
            * g++.dg/coroutines/torture/alloc-00-gro-on-alloc-fail.C: Likewise.
            * g++.dg/coroutines/torture/alloc-01-overload-newdel.C: Likewise.
            * g++.dg/coroutines/torture/alloc-02-fail-new-grooaf-check.C: Likewise.
            * g++.dg/coroutines/torture/alloc-03-overload-new-1.C: Likewise.
            * g++.dg/coroutines/torture/alloc-04-overload-del-use-two-args.C:
            Likewise.
            * g++.dg/coroutines/torture/call-00-co-aw-arg.C: Likewise.
            * g++.dg/coroutines/torture/call-01-multiple-co-aw.C: Likewise.
            * g++.dg/coroutines/torture/call-02-temp-co-aw.C: Likewise.
            * g++.dg/coroutines/torture/call-03-temp-ref-co-aw.C: Likewise.
            * g++.dg/coroutines/torture/class-00-co-ret.C: Likewise.
            * g++.dg/coroutines/torture/class-01-co-ret-parm.C: Likewise.
            * g++.dg/coroutines/torture/class-02-templ-parm.C: Likewise.
            * g++.dg/coroutines/torture/class-03-operator-templ-parm.C: Likewise.
            * g++.dg/coroutines/torture/class-04-lambda-1.C: Likewise.
            * g++.dg/coroutines/torture/class-05-lambda-capture-copy-local.C:
            Likewise.
            * g++.dg/coroutines/torture/class-06-lambda-capture-ref.C: Likewise.
            * g++.dg/coroutines/torture/class-07-data-member.C: Likewise.
            * g++.dg/coroutines/torture/co-await-00-trivial.C: Likewise.
            * g++.dg/coroutines/torture/co-await-01-with-value.C: Likewise.
            * g++.dg/coroutines/torture/co-await-02-xform.C: Likewise.
            * g++.dg/coroutines/torture/co-await-03-rhs-op.C: Likewise.
            * g++.dg/coroutines/torture/co-await-04-control-flow.C: Likewise.
            * g++.dg/coroutines/torture/co-await-05-loop.C: Likewise.
            * g++.dg/coroutines/torture/co-await-06-ovl.C: Likewise.
            * g++.dg/coroutines/torture/co-await-07-tmpl.C: Likewise.
            * g++.dg/coroutines/torture/co-await-08-cascade.C: Likewise.
            * g++.dg/coroutines/torture/co-await-09-pair.C: Likewise.
            * g++.dg/coroutines/torture/co-await-10-template-fn-arg.C: Likewise.
            * g++.dg/coroutines/torture/co-await-11-forwarding.C: Likewise.
            * g++.dg/coroutines/torture/co-await-12-operator-2.C: Likewise.
            * g++.dg/coroutines/torture/co-await-13-return-ref.C: Likewise.
            * g++.dg/coroutines/torture/co-await-14-return-ref-to-auto.C: Likewise.
            * g++.dg/coroutines/torture/co-await-15-return-non-triv.C: Likewise.
            * g++.dg/coroutines/torture/co-await-17-capture-comp-ref.C: Likewise.
            * g++.dg/coroutines/torture/co-await-18-if-cond.C: Likewise.
            * g++.dg/coroutines/torture/co-await-19-while-cond.C: Likewise.
            * g++.dg/coroutines/torture/co-await-20-do-while-cond.C: Likewise.
            * g++.dg/coroutines/torture/co-await-21-switch-value.C: Likewise.
            * g++.dg/coroutines/torture/co-await-22-truth-and-of-if.C: Likewise.
            * g++.dg/coroutines/torture/co-await-24-for-init.C: Likewise.
            * g++.dg/coroutines/torture/co-await-25-for-condition.C: Likewise.
            * g++.dg/coroutines/torture/co-await-26-for-iteration-expr.C: Likewise.
            * g++.dg/coroutines/torture/co-ret-00-void-return-is-ready.C: Likewise.
            * g++.dg/coroutines/torture/co-ret-01-void-return-is-suspend.C:
            Likewise.
            * g++.dg/coroutines/torture/co-ret-03-different-GRO-type.C:
            Likewise.
            * g++.dg/coroutines/torture/co-ret-04-GRO-nontriv.C: Likewise.
            * g++.dg/coroutines/torture/co-ret-05-return-value.C: Likewise.
            * g++.dg/coroutines/torture/co-ret-06-template-promise-val-1.C:
            Likewise.
            * g++.dg/coroutines/torture/co-ret-07-void-cast-expr.C: Likewise.
            * g++.dg/coroutines/torture/co-ret-08-template-cast-ret.C: Likewise.
            * g++.dg/coroutines/torture/co-ret-09-bool-await-susp.C: Likewise.
            * g++.dg/coroutines/torture/co-ret-10-expression-evaluates-once.C:
            Likewise.
            * g++.dg/coroutines/torture/co-ret-11-co-ret-co-await.C: Likewise.
            * g++.dg/coroutines/torture/co-ret-12-co-ret-fun-co-await.C: Likewise.
            * g++.dg/coroutines/torture/co-ret-13-template-2.C: Likewise.
            * g++.dg/coroutines/torture/co-ret-14-template-3.C: Likewise.
            * g++.dg/coroutines/torture/co-ret-16-simple-control-flow.C: Likewise.
            * g++.dg/coroutines/torture/co-ret-17-void-ret-coro.C: Likewise.
            * g++.dg/coroutines/torture/co-yield-00-triv.C: Likewise.
            * g++.dg/coroutines/torture/co-yield-01-multi.C: Likewise.
            * g++.dg/coroutines/torture/co-yield-02-loop.C: Likewise.
            * g++.dg/coroutines/torture/co-yield-03-tmpl.C: Likewise.
            * g++.dg/coroutines/torture/co-yield-05-co-aw.C: Likewise.
            * g++.dg/coroutines/torture/co-yield-06-fun-parm.C: Likewise.
            * g++.dg/coroutines/torture/co-yield-07-template-fn-param.C: Likewise.
            * g++.dg/coroutines/torture/co-yield-08-more-refs.C: Likewise.
            * g++.dg/coroutines/torture/co-yield-09-more-templ-refs.C: Likewise.
            * g++.dg/coroutines/torture/exceptions-test-0.C: Likewise.
            * g++.dg/coroutines/torture/exceptions-test-01-n4849-a.C: Likewise.
            * g++.dg/coroutines/torture/func-params-00.C: Likewise.
            * g++.dg/coroutines/torture/func-params-01.C: Likewise.
            * g++.dg/coroutines/torture/func-params-02.C: Likewise.
            * g++.dg/coroutines/torture/func-params-03.C: Likewise.
            * g++.dg/coroutines/torture/func-params-04.C: Likewise.
            * g++.dg/coroutines/torture/func-params-05.C: Likewise.
            * g++.dg/coroutines/torture/func-params-06.C: Likewise.
            * g++.dg/coroutines/torture/func-params-07.C: Likewise.
            * g++.dg/coroutines/torture/lambda-00-co-ret.C: Likewise.
            * g++.dg/coroutines/torture/lambda-01-co-ret-parm.C: Likewise.
            * g++.dg/coroutines/torture/lambda-02-co-yield-values.C: Likewise.
            * g++.dg/coroutines/torture/lambda-03-auto-parm-1.C: Likewise.
            * g++.dg/coroutines/torture/lambda-04-templ-parm.C: Likewise.
            * g++.dg/coroutines/torture/lambda-05-capture-copy-local.C: Likewise.
            * g++.dg/coroutines/torture/lambda-06-multi-capture.C: Likewise.
            * g++.dg/coroutines/torture/lambda-07-multi-yield.C: Likewise.
            * g++.dg/coroutines/torture/lambda-08-co-ret-parm-ref.C: Likewise.
            * g++.dg/coroutines/torture/lambda-09-init-captures.C: Likewise.
            * g++.dg/coroutines/torture/lambda-10-mutable.C: Likewise.
            * g++.dg/coroutines/torture/local-var-00-const.C: Likewise.
            * g++.dg/coroutines/torture/local-var-01-single.C: Likewise.
            * g++.dg/coroutines/torture/local-var-02-conditional.C: Likewise.
            * g++.dg/coroutines/torture/local-var-03-with-awaits.C: Likewise.
            * g++.dg/coroutines/torture/local-var-04-hiding-nested-scopes.C:
            Likewise.
            * g++.dg/coroutines/torture/local-var-06-structured-binding.C:
            Likewise.
            * g++.dg/coroutines/torture/mid-suspend-destruction-0.C: Likewise.
            * g++.dg/coroutines/torture/pr95003.C: Likewise.
            * g++.dg/coroutines/torture/pr95519-00-return_void.C: Likewise.
            * g++.dg/coroutines/torture/pr95519-01-initial-suspend.C: Likewise.
            * g++.dg/coroutines/torture/pr95519-02-final_suspend.C: Likewise.
            * g++.dg/coroutines/torture/pr95519-03-return-value.C: Likewise.
            * g++.dg/coroutines/torture/pr95519-04-yield-value.C: Likewise.
            * g++.dg/coroutines/torture/pr95519-05-gro.C: Likewise.
            * g++.dg/coroutines/torture/pr95519-06-grooaf.C: Likewise.
            * g++.dg/coroutines/torture/pr95519-07-unhandled-exception.C: Likewise.
            * g++.dg/cpp23/subscript5.C: Likewise.
            * g++.dg/cpp23/subscript6.C: Likewise.
            * g++.dg/eh/filter2.C: Likewise.
            * g++.dg/eh/uncaught1.C: Likewise.
            * g++.dg/eh/uncaught2.C: Likewise.
            * g++.dg/opt/eh4.C: Likewise.
            * g++.dg/opt/reload3.C: Likewise.
            * g++.dg/other/ucnid-1-utf8.C: Likewise.
            * g++.dg/other/ucnid-1.C: Likewise.
            * g++.dg/warn/noreturn-1.C: Likewise.

Diff:
---
 gcc/doc/sourcebuild.texi                               |  4 ++++
 gcc/testsuite/c-c++-common/pr36513-2.c                 |  1 +
 gcc/testsuite/g++.dg/analyzer/pr93212.C                |  1 +
 gcc/testsuite/g++.dg/analyzer/vfunc-2.C                |  1 +
 gcc/testsuite/g++.dg/concepts/expression.C             |  1 +
 gcc/testsuite/g++.dg/concepts/fn3.C                    |  1 +
 gcc/testsuite/g++.dg/concepts/fn9.C                    |  1 +
 gcc/testsuite/g++.dg/concepts/generic-fn.C             |  1 +
 gcc/testsuite/g++.dg/concepts/intro2.C                 |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-access1.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-assume2.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-assume3.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-assume4.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-config1.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-constexpr1.C  |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-deduced2.C    |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-externC.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-friend1.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-ignore2.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-multiline1.C  |  1 +
 .../g++.dg/contracts/contracts-nested-class2.C         |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-post2.C       |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-post3.C       |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-pre10.C       |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-pre2.C        |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-pre2a2.C      |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-pre3.C        |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-pre4.C        |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-pre5.C        |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-pre7.C        |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-pre9.C        |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-redecl3.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-redecl4.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-redecl6.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-redecl7.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec1.C  |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec2.C  |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec3.C  |  1 +
 gcc/testsuite/g++.dg/contracts/contracts10.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts14.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts15.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts16.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts17.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts18.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts19.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts2.C            |  1 +
 gcc/testsuite/g++.dg/contracts/contracts22.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts24.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts25.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts3.C            |  1 +
 gcc/testsuite/g++.dg/contracts/contracts35.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts4.C            |  1 +
 gcc/testsuite/g++.dg/contracts/contracts5.C            |  1 +
 gcc/testsuite/g++.dg/contracts/contracts6.C            |  1 +
 gcc/testsuite/g++.dg/contracts/contracts7.C            |  1 +
 gcc/testsuite/g++.dg/contracts/contracts9.C            |  1 +
 gcc/testsuite/g++.dg/coroutines/pr100611.C             |  1 +
 gcc/testsuite/g++.dg/coroutines/pr100772-b.C           |  1 +
 gcc/testsuite/g++.dg/coroutines/pr101133.C             |  1 +
 gcc/testsuite/g++.dg/coroutines/pr101367.C             |  1 +
 gcc/testsuite/g++.dg/coroutines/pr101765.C             |  1 +
 gcc/testsuite/g++.dg/coroutines/pr101976.C             |  1 +
 gcc/testsuite/g++.dg/coroutines/pr102454.C             |  1 +
 gcc/testsuite/g++.dg/coroutines/pr104051.C             |  1 +
 gcc/testsuite/g++.dg/coroutines/pr94288.C              |  1 +
 gcc/testsuite/g++.dg/coroutines/pr95477.C              |  1 +
 gcc/testsuite/g++.dg/coroutines/pr95520.C              |  1 +
 gcc/testsuite/g++.dg/coroutines/pr95599.C              |  1 +
 gcc/testsuite/g++.dg/coroutines/pr95711.C              |  1 +
 gcc/testsuite/g++.dg/coroutines/pr95736.C              |  1 +
 gcc/testsuite/g++.dg/coroutines/pr97587.C              |  1 +
 gcc/testsuite/g++.dg/coroutines/pr99576_1.C            |  1 +
 gcc/testsuite/g++.dg/coroutines/pr99576_2.C            |  1 +
 gcc/testsuite/g++.dg/coroutines/ramp-return-a.C        |  1 +
 gcc/testsuite/g++.dg/coroutines/ramp-return-b.C        |  1 +
 gcc/testsuite/g++.dg/coroutines/ramp-return-c.C        |  1 +
 .../coroutines/torture/alloc-00-gro-on-alloc-fail.C    |  1 +
 .../coroutines/torture/alloc-01-overload-newdel.C      |  1 +
 .../torture/alloc-02-fail-new-grooaf-check.C           |  1 +
 .../coroutines/torture/alloc-03-overload-new-1.C       |  1 +
 .../torture/alloc-04-overload-del-use-two-args.C       |  1 +
 .../g++.dg/coroutines/torture/call-00-co-aw-arg.C      |  1 +
 .../g++.dg/coroutines/torture/call-01-multiple-co-aw.C |  1 +
 .../g++.dg/coroutines/torture/call-02-temp-co-aw.C     |  1 +
 .../g++.dg/coroutines/torture/call-03-temp-ref-co-aw.C |  1 +
 .../g++.dg/coroutines/torture/class-00-co-ret.C        |  1 +
 .../g++.dg/coroutines/torture/class-01-co-ret-parm.C   |  1 +
 .../g++.dg/coroutines/torture/class-02-templ-parm.C    |  1 +
 .../coroutines/torture/class-03-operator-templ-parm.C  |  1 +
 .../g++.dg/coroutines/torture/class-04-lambda-1.C      |  1 +
 .../torture/class-05-lambda-capture-copy-local.C       |  1 +
 .../coroutines/torture/class-06-lambda-capture-ref.C   |  1 +
 .../g++.dg/coroutines/torture/class-07-data-member.C   |  1 +
 .../g++.dg/coroutines/torture/co-await-00-trivial.C    |  1 +
 .../g++.dg/coroutines/torture/co-await-01-with-value.C |  1 +
 .../g++.dg/coroutines/torture/co-await-02-xform.C      |  1 +
 .../g++.dg/coroutines/torture/co-await-03-rhs-op.C     |  1 +
 .../coroutines/torture/co-await-04-control-flow.C      |  1 +
 .../g++.dg/coroutines/torture/co-await-05-loop.C       |  1 +
 .../g++.dg/coroutines/torture/co-await-06-ovl.C        |  1 +
 .../g++.dg/coroutines/torture/co-await-07-tmpl.C       |  1 +
 .../g++.dg/coroutines/torture/co-await-08-cascade.C    |  1 +
 .../g++.dg/coroutines/torture/co-await-09-pair.C       |  1 +
 .../coroutines/torture/co-await-10-template-fn-arg.C   |  1 +
 .../g++.dg/coroutines/torture/co-await-11-forwarding.C |  1 +
 .../g++.dg/coroutines/torture/co-await-12-operator-2.C |  1 +
 .../g++.dg/coroutines/torture/co-await-13-return-ref.C |  1 +
 .../torture/co-await-14-return-ref-to-auto.C           |  1 +
 .../coroutines/torture/co-await-15-return-non-triv.C   |  1 +
 .../coroutines/torture/co-await-16-template-traits.C   |  1 +
 .../coroutines/torture/co-await-17-capture-comp-ref.C  |  1 +
 .../g++.dg/coroutines/torture/co-await-18-if-cond.C    |  1 +
 .../g++.dg/coroutines/torture/co-await-19-while-cond.C |  1 +
 .../coroutines/torture/co-await-20-do-while-cond.C     |  1 +
 .../coroutines/torture/co-await-21-switch-value.C      |  1 +
 .../coroutines/torture/co-await-22-truth-and-of-if.C   |  1 +
 .../g++.dg/coroutines/torture/co-await-24-for-init.C   |  1 +
 .../coroutines/torture/co-await-25-for-condition.C     |  1 +
 .../torture/co-await-26-for-iteration-expr.C           |  1 +
 .../torture/co-ret-00-void-return-is-ready.C           |  1 +
 .../torture/co-ret-01-void-return-is-suspend.C         |  1 +
 .../coroutines/torture/co-ret-03-different-GRO-type.C  |  1 +
 .../g++.dg/coroutines/torture/co-ret-04-GRO-nontriv.C  |  1 +
 .../g++.dg/coroutines/torture/co-ret-05-return-value.C |  1 +
 .../torture/co-ret-06-template-promise-val-1.C         |  1 +
 .../coroutines/torture/co-ret-07-void-cast-expr.C      |  1 +
 .../coroutines/torture/co-ret-08-template-cast-ret.C   |  1 +
 .../coroutines/torture/co-ret-09-bool-await-susp.C     |  1 +
 .../torture/co-ret-10-expression-evaluates-once.C      |  1 +
 .../coroutines/torture/co-ret-11-co-ret-co-await.C     |  1 +
 .../coroutines/torture/co-ret-12-co-ret-fun-co-await.C |  1 +
 .../g++.dg/coroutines/torture/co-ret-13-template-2.C   |  1 +
 .../g++.dg/coroutines/torture/co-ret-14-template-3.C   |  1 +
 .../coroutines/torture/co-ret-15-default-return_void.C |  1 +
 .../coroutines/torture/co-ret-16-simple-control-flow.C |  1 +
 .../coroutines/torture/co-ret-17-void-ret-coro.C       |  1 +
 .../g++.dg/coroutines/torture/co-yield-00-triv.C       |  1 +
 .../g++.dg/coroutines/torture/co-yield-01-multi.C      |  1 +
 .../g++.dg/coroutines/torture/co-yield-02-loop.C       |  1 +
 .../g++.dg/coroutines/torture/co-yield-03-tmpl.C       |  1 +
 .../torture/co-yield-04-complex-local-state.C          |  1 +
 .../g++.dg/coroutines/torture/co-yield-05-co-aw.C      |  1 +
 .../g++.dg/coroutines/torture/co-yield-06-fun-parm.C   |  1 +
 .../coroutines/torture/co-yield-07-template-fn-param.C |  1 +
 .../g++.dg/coroutines/torture/co-yield-08-more-refs.C  |  1 +
 .../coroutines/torture/co-yield-09-more-templ-refs.C   |  1 +
 .../g++.dg/coroutines/torture/exceptions-test-0.C      |  1 +
 .../coroutines/torture/exceptions-test-01-n4849-a.C    |  1 +
 .../g++.dg/coroutines/torture/extern-c-coroutine.C     |  2 ++
 .../g++.dg/coroutines/torture/func-params-00.C         |  1 +
 .../g++.dg/coroutines/torture/func-params-01.C         |  1 +
 .../g++.dg/coroutines/torture/func-params-02.C         |  1 +
 .../g++.dg/coroutines/torture/func-params-03.C         |  1 +
 .../g++.dg/coroutines/torture/func-params-04.C         |  1 +
 .../g++.dg/coroutines/torture/func-params-05.C         |  1 +
 .../g++.dg/coroutines/torture/func-params-06.C         |  1 +
 .../g++.dg/coroutines/torture/func-params-07.C         |  1 +
 .../g++.dg/coroutines/torture/func-params-08.C         |  1 +
 .../torture/func-params-09-awaitable-parms.C           |  1 +
 .../g++.dg/coroutines/torture/lambda-00-co-ret.C       |  1 +
 .../g++.dg/coroutines/torture/lambda-01-co-ret-parm.C  |  1 +
 .../coroutines/torture/lambda-02-co-yield-values.C     |  1 +
 .../g++.dg/coroutines/torture/lambda-03-auto-parm-1.C  |  1 +
 .../g++.dg/coroutines/torture/lambda-04-templ-parm.C   |  1 +
 .../coroutines/torture/lambda-05-capture-copy-local.C  |  1 +
 .../coroutines/torture/lambda-06-multi-capture.C       |  1 +
 .../g++.dg/coroutines/torture/lambda-07-multi-yield.C  |  1 +
 .../coroutines/torture/lambda-08-co-ret-parm-ref.C     |  1 +
 .../coroutines/torture/lambda-09-init-captures.C       |  1 +
 .../g++.dg/coroutines/torture/lambda-10-mutable.C      |  1 +
 .../g++.dg/coroutines/torture/local-var-00-const.C     |  1 +
 .../g++.dg/coroutines/torture/local-var-01-single.C    |  1 +
 .../coroutines/torture/local-var-02-conditional.C      |  1 +
 .../coroutines/torture/local-var-03-with-awaits.C      |  1 +
 .../torture/local-var-04-hiding-nested-scopes.C        |  1 +
 .../g++.dg/coroutines/torture/local-var-05-awaitable.C |  1 +
 .../torture/local-var-06-structured-binding.C          |  1 +
 .../coroutines/torture/mid-suspend-destruction-0.C     |  1 +
 gcc/testsuite/g++.dg/coroutines/torture/pr95003.C      |  1 +
 .../g++.dg/coroutines/torture/pr95519-00-return_void.C |  1 +
 .../coroutines/torture/pr95519-01-initial-suspend.C    |  1 +
 .../coroutines/torture/pr95519-02-final_suspend.C      |  1 +
 .../coroutines/torture/pr95519-03-return-value.C       |  1 +
 .../g++.dg/coroutines/torture/pr95519-04-yield-value.C |  1 +
 .../g++.dg/coroutines/torture/pr95519-05-gro.C         |  1 +
 .../g++.dg/coroutines/torture/pr95519-06-grooaf.C      |  1 +
 .../torture/pr95519-07-unhandled-exception.C           |  1 +
 gcc/testsuite/g++.dg/coroutines/torture/pr95615-01.C   |  1 +
 gcc/testsuite/g++.dg/coroutines/torture/pr95615-02.C   |  1 +
 gcc/testsuite/g++.dg/coroutines/torture/pr95615-03.C   |  1 +
 gcc/testsuite/g++.dg/coroutines/torture/pr95615-04.C   |  1 +
 gcc/testsuite/g++.dg/coroutines/torture/pr95615-05.C   |  1 +
 gcc/testsuite/g++.dg/coroutines/torture/pr98704.C      |  1 +
 gcc/testsuite/g++.dg/cpp0x/Wliteral-suffix.C           |  1 +
 gcc/testsuite/g++.dg/cpp0x/Wpessimizing-move2.C        |  1 +
 gcc/testsuite/g++.dg/cpp0x/constexpr-70001-3.C         |  1 +
 gcc/testsuite/g++.dg/cpp0x/constexpr-ice16.C           |  1 +
 gcc/testsuite/g++.dg/cpp0x/dc5.C                       |  1 +
 gcc/testsuite/g++.dg/cpp0x/enum35.C                    |  1 +
 gcc/testsuite/g++.dg/cpp0x/enum36.C                    |  1 +
 gcc/testsuite/g++.dg/cpp0x/initlist-opt1.C             |  1 +
 gcc/testsuite/g++.dg/cpp0x/initlist-vect2.C            |  1 +
 gcc/testsuite/g++.dg/cpp0x/initlist13.C                |  1 +
 gcc/testsuite/g++.dg/cpp0x/initlist15.C                |  1 +
 gcc/testsuite/g++.dg/cpp0x/initlist25.C                |  1 +
 gcc/testsuite/g++.dg/cpp0x/initlist54.C                |  1 +
 gcc/testsuite/g++.dg/cpp0x/initlist92.C                |  1 +
 .../g++.dg/cpp0x/lambda/lambda-capture-const-ref-neg.C |  1 +
 .../g++.dg/cpp0x/lambda/lambda-capture-const-ref.C     |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const-neg.C   |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const.C       |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-deduce.C      |  1 +
 .../g++.dg/cpp0x/lambda/lambda-in-class-neg.C          |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-in-class.C    |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mixed.C       |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mutable.C     |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested.C      |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-non-const.C   |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nop.C         |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nullptr.C     |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-pass.C        |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-recursive.C   |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ref-default.C |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ref.C         |  1 +
 gcc/testsuite/g++.dg/cpp0x/nullptr20.C                 |  1 +
 gcc/testsuite/g++.dg/cpp0x/pr61038.C                   |  1 +
 gcc/testsuite/g++.dg/cpp0x/rv-trivial-bug.C            |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-concat-neg.C          |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-concat.C              |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-embed-quote.C         |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-general.C             |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-namespace.C           |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-raw-op.C              |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-raw-str.C             |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-resolve-char8_t.C     |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-resolve.C             |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-sfinae.C              |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-string-literal.C      |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-suffix-neg.C          |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-template.C            |  1 +
 gcc/testsuite/g++.dg/cpp0x/variadic-bind.C             |  1 +
 gcc/testsuite/g++.dg/cpp0x/variadic-function.C         |  1 +
 gcc/testsuite/g++.dg/cpp0x/variadic-mem_fn.C           |  1 +
 gcc/testsuite/g++.dg/cpp0x/variadic-tuple.C            |  1 +
 gcc/testsuite/g++.dg/cpp1y/auto-fn45.C                 |  1 +
 gcc/testsuite/g++.dg/cpp1y/complex_literals1.C         |  1 +
 gcc/testsuite/g++.dg/cpp1y/complex_literals1a.C        |  1 +
 gcc/testsuite/g++.dg/cpp1y/constexpr-66093.C           |  1 +
 gcc/testsuite/g++.dg/cpp1y/constexpr-assert1.C         |  1 +
 gcc/testsuite/g++.dg/cpp1y/constexpr-assert2.C         |  1 +
 gcc/testsuite/g++.dg/cpp1y/lambda-generic-69078-2.C    |  1 +
 gcc/testsuite/g++.dg/cpp1y/lambda-generic-x.C          |  1 +
 gcc/testsuite/g++.dg/cpp1y/lambda-init8.C              |  1 +
 gcc/testsuite/g++.dg/cpp1y/new2.C                      |  1 +
 gcc/testsuite/g++.dg/cpp1y/nsdmi-aggr12.C              |  1 +
 gcc/testsuite/g++.dg/cpp1y/pr57640.C                   |  1 +
 gcc/testsuite/g++.dg/cpp1y/pr77786.C                   |  1 +
 gcc/testsuite/g++.dg/cpp1y/pr95226.C                   |  1 +
 .../g++.dg/cpp1y/udlit-char-template-sfinae.C          |  1 +
 .../udlit-char-template-vs-std-literal-operator.C      |  1 +
 gcc/testsuite/g++.dg/cpp1y/udlit-userdef-string.C      |  1 +
 gcc/testsuite/g++.dg/cpp1z/class-deduction14.C         |  1 +
 gcc/testsuite/g++.dg/cpp1z/decomp37.C                  |  1 +
 gcc/testsuite/g++.dg/cpp1z/eval-order2.C               |  1 +
 gcc/testsuite/g++.dg/cpp1z/fold1.C                     |  1 +
 gcc/testsuite/g++.dg/cpp1z/init-statement6.C           |  1 +
 gcc/testsuite/g++.dg/cpp1z/launder3.C                  |  1 +
 gcc/testsuite/g++.dg/cpp1z/launder4.C                  |  1 +
 gcc/testsuite/g++.dg/cpp1z/launder5.C                  |  1 +
 gcc/testsuite/g++.dg/cpp1z/launder6.C                  |  1 +
 gcc/testsuite/g++.dg/cpp1z/utf8.C                      |  1 +
 gcc/testsuite/g++.dg/cpp23/subscript5.C                |  1 +
 gcc/testsuite/g++.dg/cpp23/subscript6.C                |  1 +
 gcc/testsuite/g++.dg/cpp2a/concepts-cmath.C            |  1 +
 gcc/testsuite/g++.dg/cpp2a/concepts-explicit-spec1.C   |  1 +
 gcc/testsuite/g++.dg/cpp2a/concepts-explicit-spec4.C   |  1 +
 gcc/testsuite/g++.dg/cpp2a/concepts-explicit-spec5.C   |  1 +
 gcc/testsuite/g++.dg/cpp2a/concepts-memfun.C           |  1 +
 gcc/testsuite/g++.dg/cpp2a/concepts-pr67774.C          |  1 +
 gcc/testsuite/g++.dg/cpp2a/cond-triv2.C                |  1 +
 gcc/testsuite/g++.dg/cpp2a/nontype-float1.C            |  1 +
 gcc/testsuite/g++.dg/diagnostic/disable.C              |  1 +
 gcc/testsuite/g++.dg/diagnostic/pr65923.C              |  1 +
 gcc/testsuite/g++.dg/eh/arm-vfp-unwind.C               |  1 +
 gcc/testsuite/g++.dg/eh/crossjump1.C                   |  1 +
 gcc/testsuite/g++.dg/eh/filter2.C                      |  1 +
 gcc/testsuite/g++.dg/eh/omit-frame-pointer.C           |  1 +
 gcc/testsuite/g++.dg/eh/simd-3.C                       |  1 +
 gcc/testsuite/g++.dg/eh/uncaught1.C                    |  1 +
 gcc/testsuite/g++.dg/eh/uncaught2.C                    |  1 +
 gcc/testsuite/g++.dg/ext/bases.C                       |  1 +
 gcc/testsuite/g++.dg/ext/builtin-line1.C               |  1 +
 gcc/testsuite/g++.dg/ext/complex4.C                    |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_assign.C          |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_assign_odr.C      |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_constructor.C     |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_constructor_odr.C |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_copy-1.C          |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_copy-2.C          |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_copy-3.C          |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_copy-4.C          |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_copy-5.C          |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_copy-6.C          |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_copy-7.C          |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_copy_odr.C        |  1 +
 gcc/testsuite/g++.dg/ext/has_trivial_assign.C          |  1 +
 gcc/testsuite/g++.dg/ext/has_trivial_constructor.C     |  1 +
 gcc/testsuite/g++.dg/ext/has_trivial_copy.C            |  1 +
 gcc/testsuite/g++.dg/ext/has_trivial_destructor-1.C    |  1 +
 gcc/testsuite/g++.dg/ext/has_virtual_destructor.C      |  1 +
 gcc/testsuite/g++.dg/ext/is_abstract.C                 |  1 +
 gcc/testsuite/g++.dg/ext/is_aggregate.C                |  1 +
 gcc/testsuite/g++.dg/ext/is_base_of.C                  |  1 +
 gcc/testsuite/g++.dg/ext/is_class.C                    |  1 +
 gcc/testsuite/g++.dg/ext/is_convertible2.C             |  1 +
 gcc/testsuite/g++.dg/ext/is_empty.C                    |  1 +
 gcc/testsuite/g++.dg/ext/is_enum.C                     |  1 +
 gcc/testsuite/g++.dg/ext/is_pod.C                      |  1 +
 gcc/testsuite/g++.dg/ext/is_polymorphic.C              |  1 +
 gcc/testsuite/g++.dg/ext/is_union.C                    |  1 +
 gcc/testsuite/g++.dg/ext/underlying_type10.C           |  1 +
 gcc/testsuite/g++.dg/ext/underlying_type4.C            |  1 +
 gcc/testsuite/g++.dg/inherit/virtual8.C                |  1 +
 gcc/testsuite/g++.dg/init/array4.C                     |  1 +
 gcc/testsuite/g++.dg/init/new18.C                      |  1 +
 gcc/testsuite/g++.dg/init/new39.C                      |  1 +
 gcc/testsuite/g++.dg/init/new40.C                      |  1 +
 gcc/testsuite/g++.dg/ipa/devirt-29.C                   |  1 +
 gcc/testsuite/g++.dg/ipa/pr85549.C                     |  1 +
 gcc/testsuite/g++.dg/lookup/missing-std-include-3.C    |  1 +
 gcc/testsuite/g++.dg/lookup/pr21802.C                  |  1 +
 gcc/testsuite/g++.dg/lto/20091022-2_0.C                |  1 +
 gcc/testsuite/g++.dg/lto/20091219_0.C                  |  1 +
 gcc/testsuite/g++.dg/lto/pr89358_0.C                   |  1 +
 gcc/testsuite/g++.dg/lto/pr89358_1.C                   |  1 +
 gcc/testsuite/g++.dg/modules/binding-1_a.H             |  1 +
 gcc/testsuite/g++.dg/modules/binding-1_b.H             |  1 +
 gcc/testsuite/g++.dg/modules/contracts-1_a.C           |  1 +
 gcc/testsuite/g++.dg/modules/contracts-1_b.C           |  1 +
 gcc/testsuite/g++.dg/modules/contracts-2_a.C           |  1 +
 gcc/testsuite/g++.dg/modules/contracts-2_b.C           |  1 +
 gcc/testsuite/g++.dg/modules/contracts-3_a.C           |  1 +
 gcc/testsuite/g++.dg/modules/contracts-3_b.C           |  1 +
 gcc/testsuite/g++.dg/modules/contracts-4_a.C           |  1 +
 gcc/testsuite/g++.dg/modules/contracts-4_d.C           |  1 +
 gcc/testsuite/g++.dg/modules/global-3_a.C              |  1 +
 gcc/testsuite/g++.dg/modules/hello-1_a.C               |  1 +
 gcc/testsuite/g++.dg/modules/iostream-1_a.H            |  1 +
 gcc/testsuite/g++.dg/modules/part-5_c.C                |  1 +
 gcc/testsuite/g++.dg/modules/string-1_a.H              |  1 +
 gcc/testsuite/g++.dg/modules/string-1_b.C              |  1 +
 gcc/testsuite/g++.dg/modules/string-view1.C            |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-1_a.H       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-1_b.C       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-2_b.C       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-3_a.H       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-3_b.C       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-4_a.H       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-4_b.C       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-5_a.H       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-5_b.C       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-6_a.H       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-6_b.C       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header_a.H         |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header_b.C         |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-tr1_a.H            |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-tr1_b.C            |  1 +
 gcc/testsuite/g++.dg/opt/dtor4-aux.cc                  |  1 +
 gcc/testsuite/g++.dg/opt/dtor4.C                       |  1 +
 gcc/testsuite/g++.dg/opt/eh4.C                         |  1 +
 gcc/testsuite/g++.dg/opt/nrv17.C                       |  1 +
 gcc/testsuite/g++.dg/opt/pr102970.C                    |  1 +
 gcc/testsuite/g++.dg/opt/pr109434.C                    |  1 +
 gcc/testsuite/g++.dg/opt/pr15551.C                     |  1 +
 gcc/testsuite/g++.dg/opt/pr30965.C                     |  1 +
 gcc/testsuite/g++.dg/opt/pr77844.C                     |  1 +
 gcc/testsuite/g++.dg/opt/pr85393.C                     |  1 +
 gcc/testsuite/g++.dg/opt/reload3.C                     |  1 +
 gcc/testsuite/g++.dg/other/final7.C                    |  1 +
 gcc/testsuite/g++.dg/other/pr40561.C                   |  1 +
 gcc/testsuite/g++.dg/other/ucnid-1-utf8.C              |  1 +
 gcc/testsuite/g++.dg/other/ucnid-1.C                   |  1 +
 gcc/testsuite/g++.dg/parse/lookup1.C                   |  1 +
 gcc/testsuite/g++.dg/parse/parse5.C                    |  1 +
 gcc/testsuite/g++.dg/pch/system-1.C                    |  2 ++
 gcc/testsuite/g++.dg/pch/system-2.C                    |  2 ++
 gcc/testsuite/g++.dg/pr100253.C                        |  1 +
 gcc/testsuite/g++.dg/pr104547.C                        |  1 +
 gcc/testsuite/g++.dg/pr107087.C                        |  1 +
 gcc/testsuite/g++.dg/pr71488.C                         |  1 +
 gcc/testsuite/g++.dg/pr71655.C                         |  1 +
 gcc/testsuite/g++.dg/pr79095-3.C                       |  1 +
 gcc/testsuite/g++.dg/pr83239.C                         |  1 +
 gcc/testsuite/g++.dg/pr99966.C                         |  1 +
 gcc/testsuite/g++.dg/rtti/typeid4.C                    |  1 +
 gcc/testsuite/g++.dg/spellcheck-inttypes.C             |  1 +
 gcc/testsuite/g++.dg/template/friend10.C               |  1 +
 gcc/testsuite/g++.dg/template/pr69961a.C               |  1 +
 gcc/testsuite/g++.dg/template/show-template-tree-3.C   |  1 +
 gcc/testsuite/g++.dg/torture/alias-1.C                 |  1 +
 gcc/testsuite/g++.dg/torture/builtin-location.C        |  1 +
 gcc/testsuite/g++.dg/torture/pr103669.C                |  1 +
 gcc/testsuite/g++.dg/torture/pr104601.C                |  1 +
 gcc/testsuite/g++.dg/torture/pr106922.C                |  1 +
 gcc/testsuite/g++.dg/torture/pr111019.C                |  1 +
 gcc/testsuite/g++.dg/torture/pr33572.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr33735.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr34099.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr39417.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr44972.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr46364.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr49628.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr49938.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr51903.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr54498.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr60750.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr67600.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr82084.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr95493-1.C               |  1 +
 gcc/testsuite/g++.dg/tree-ssa/allocator-opt1.C         |  1 +
 gcc/testsuite/g++.dg/tree-ssa/empty-loop.C             |  1 +
 gcc/testsuite/g++.dg/tree-ssa/initlist-opt1.C          |  1 +
 gcc/testsuite/g++.dg/tree-ssa/initlist-opt2.C          |  1 +
 gcc/testsuite/g++.dg/tree-ssa/initlist-opt3.C          |  1 +
 gcc/testsuite/g++.dg/tree-ssa/loop-cond-split-1.C      |  1 +
 gcc/testsuite/g++.dg/tree-ssa/pr101839.C               |  1 +
 gcc/testsuite/g++.dg/tree-ssa/pr104529.C               |  1 +
 gcc/testsuite/g++.dg/tree-ssa/pr14703.C                |  1 +
 gcc/testsuite/g++.dg/tree-ssa/pr19786.C                |  1 +
 gcc/testsuite/g++.dg/tree-ssa/pr46228.C                |  1 +
 gcc/testsuite/g++.dg/tree-ssa/pr63841.C                |  1 +
 gcc/testsuite/g++.dg/tree-ssa/pr69336.C                |  1 +
 gcc/testsuite/g++.dg/tree-ssa/pr78847.C                |  1 +
 gcc/testsuite/g++.dg/tree-ssa/pr95638.C                |  1 +
 gcc/testsuite/g++.dg/warn/Warray-bounds-27.C           |  1 +
 gcc/testsuite/g++.dg/warn/Wdangling-pointer-pr110055.C |  1 +
 gcc/testsuite/g++.dg/warn/Wdangling-reference10.C      |  1 +
 gcc/testsuite/g++.dg/warn/Wdangling-reference4.C       |  1 +
 gcc/testsuite/g++.dg/warn/Wdangling-reference5.C       |  1 +
 gcc/testsuite/g++.dg/warn/Wfree-nonheap-object-3.C     |  3 ++-
 gcc/testsuite/g++.dg/warn/Winline-3.C                  |  1 +
 gcc/testsuite/g++.dg/warn/Wmemset-elt-size1.C          |  1 +
 .../g++.dg/warn/Wstrict-aliasing-bogus-escape-2.C      |  1 +
 .../g++.dg/warn/Wstrict-aliasing-bogus-escape.C        |  1 +
 gcc/testsuite/g++.dg/warn/Wstringop-overflow-6.C       |  3 ++-
 gcc/testsuite/g++.dg/warn/Wstringop-overflow-8.C       |  1 +
 gcc/testsuite/g++.dg/warn/Wstringop-overread-1.C       |  1 +
 gcc/testsuite/g++.dg/warn/Wuninitialized-33.C          |  1 +
 gcc/testsuite/g++.dg/warn/format1.C                    |  1 +
 gcc/testsuite/g++.dg/warn/noreturn-1.C                 |  1 +
 gcc/testsuite/g++.dg/warn/string1.C                    |  1 +
 gcc/testsuite/g++.dg/warn/uninit-pr105562.C            |  1 +
 gcc/testsuite/g++.old-deja/g++.benjamin/15071.C        |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/copy9.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/crash15.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/crash20.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/crash30.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/crash38.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/crash39.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/crash49.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/crash52.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/crash62.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/cvt1.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/err-msg3.C      |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/nest21.C        |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/ptolemy2.C      |  1 +
 gcc/testsuite/g++.old-deja/g++.jason/template24.C      |  1 +
 gcc/testsuite/g++.old-deja/g++.jason/template31.C      |  1 +
 gcc/testsuite/g++.old-deja/g++.jason/typeid1.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.law/arg1.C              |  1 +
 gcc/testsuite/g++.old-deja/g++.law/arg8.C              |  1 +
 gcc/testsuite/g++.old-deja/g++.law/arm12.C             |  1 +
 gcc/testsuite/g++.old-deja/g++.law/arm9.C              |  1 +
 gcc/testsuite/g++.old-deja/g++.law/bad-error7.C        |  1 +
 gcc/testsuite/g++.old-deja/g++.law/code-gen5.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.law/ctors10.C           |  1 +
 gcc/testsuite/g++.old-deja/g++.law/ctors12.C           |  1 +
 gcc/testsuite/g++.old-deja/g++.law/ctors13.C           |  1 +
 gcc/testsuite/g++.old-deja/g++.law/ctors17.C           |  1 +
 gcc/testsuite/g++.old-deja/g++.law/ctors6.C            |  1 +
 gcc/testsuite/g++.old-deja/g++.law/cvt16.C             |  1 +
 gcc/testsuite/g++.old-deja/g++.law/cvt2.C              |  1 +
 gcc/testsuite/g++.old-deja/g++.law/cvt7.C              |  1 +
 gcc/testsuite/g++.old-deja/g++.law/except5.C           |  1 +
 gcc/testsuite/g++.old-deja/g++.law/missed-error2.C     |  1 +
 gcc/testsuite/g++.old-deja/g++.law/nest3.C             |  1 +
 gcc/testsuite/g++.old-deja/g++.law/operators32.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.law/operators4.C        |  1 +
 gcc/testsuite/g++.old-deja/g++.law/vbase1.C            |  1 +
 gcc/testsuite/g++.old-deja/g++.law/virtual3.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.law/visibility1.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.law/visibility10.C      |  1 +
 gcc/testsuite/g++.old-deja/g++.law/visibility13.C      |  1 +
 gcc/testsuite/g++.old-deja/g++.law/visibility17.C      |  1 +
 gcc/testsuite/g++.old-deja/g++.law/visibility2.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.law/visibility22.C      |  1 +
 gcc/testsuite/g++.old-deja/g++.law/visibility25.C      |  1 +
 gcc/testsuite/g++.old-deja/g++.law/visibility7.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.martin/new1.C           |  1 +
 gcc/testsuite/g++.old-deja/g++.mike/dyncast7.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.mike/eh13.C             |  1 +
 gcc/testsuite/g++.old-deja/g++.mike/eh2.C              |  1 +
 gcc/testsuite/g++.old-deja/g++.mike/net34.C            |  1 +
 gcc/testsuite/g++.old-deja/g++.mike/net46.C            |  1 +
 gcc/testsuite/g++.old-deja/g++.mike/p658.C             |  1 +
 gcc/testsuite/g++.old-deja/g++.mike/rtti1.C            |  1 +
 gcc/testsuite/g++.old-deja/g++.ns/using4.C             |  1 +
 gcc/testsuite/g++.old-deja/g++.ns/using6.C             |  1 +
 gcc/testsuite/g++.old-deja/g++.other/defarg6.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.other/headers1.C        |  1 +
 gcc/testsuite/g++.old-deja/g++.other/init9.C           |  1 +
 gcc/testsuite/g++.old-deja/g++.other/inline14.C        |  1 +
 gcc/testsuite/g++.old-deja/g++.other/inline2.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.other/inline7.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.other/inline8.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.other/optimize2.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.other/sibcall1.C        |  1 +
 gcc/testsuite/g++.old-deja/g++.other/unchanging1.C     |  1 +
 gcc/testsuite/g++.old-deja/g++.pt/crash68.C            |  1 +
 gcc/testsuite/g++.old-deja/g++.pt/memtemp100.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb109.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb113.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb115.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb124.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb127.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb129.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb129a.C        |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb130.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb132.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb15.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb21.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb24.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb27.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb28.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb29.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb3.C           |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb30.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb31.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb33.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb36.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb39.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb4.C           |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb41.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb43.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb44.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb46.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb54.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb55.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb59.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb60.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb62.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb66.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb7.C           |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb73.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb77.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb79.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.warn/iomanip.C          |  1 +
 gcc/testsuite/lib/target-supports.exp                  | 18 ++++++++++++++++++
 559 files changed, 584 insertions(+), 2 deletions(-)

diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi
index eaa75f00f5c..1d317882e58 100644
--- a/gcc/doc/sourcebuild.texi
+++ b/gcc/doc/sourcebuild.texi
@@ -2703,6 +2703,10 @@ Target is @samp{freestanding} as defined in section 4 of the C99 standard.
 Effectively, it is a target which supports no extra headers or libraries
 other than what is considered essential.
 
+@item hostedlib
+Target is not @samp{freestanding}, and, if the language is C++,
+@code{libstdc++}'s hosted mode is not disabled.
+
 @item gettimeofday
 Target supports @code{gettimeofday}.
 
diff --git a/gcc/testsuite/c-c++-common/pr36513-2.c b/gcc/testsuite/c-c++-common/pr36513-2.c
index d81c81dd4da..ca93f414304 100644
--- a/gcc/testsuite/c-c++-common/pr36513-2.c
+++ b/gcc/testsuite/c-c++-common/pr36513-2.c
@@ -1,6 +1,7 @@
 /* PR 36513: -Wlogical-op warns about strchr */
 /* { dg-do compile } */
 /* { dg-options "-Wlogical-op" } */
+/* { dg-skip-if "requires hosted libstdc++ for cstring" { ! hostedlib } } */
 #ifdef __cplusplus
 #include <cstring>
 #else 
diff --git a/gcc/testsuite/g++.dg/analyzer/pr93212.C b/gcc/testsuite/g++.dg/analyzer/pr93212.C
index 1029e8d547b..0c7c134d262 100644
--- a/gcc/testsuite/g++.dg/analyzer/pr93212.C
+++ b/gcc/testsuite/g++.dg/analyzer/pr93212.C
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++14 } }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 
 #include <iostream>
 auto lol()
diff --git a/gcc/testsuite/g++.dg/analyzer/vfunc-2.C b/gcc/testsuite/g++.dg/analyzer/vfunc-2.C
index 46b68e529e6..ba2ac652449 100644
--- a/gcc/testsuite/g++.dg/analyzer/vfunc-2.C
+++ b/gcc/testsuite/g++.dg/analyzer/vfunc-2.C
@@ -1,3 +1,4 @@
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 #include <cstdio>
 #include <cstdlib>
 
diff --git a/gcc/testsuite/g++.dg/concepts/expression.C b/gcc/testsuite/g++.dg/concepts/expression.C
index 3da0c962888..c2be18ae15e 100644
--- a/gcc/testsuite/g++.dg/concepts/expression.C
+++ b/gcc/testsuite/g++.dg/concepts/expression.C
@@ -1,5 +1,6 @@
 // { dg-do run { target c++17_only } }
 // { dg-options "-fconcepts-ts" }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 // TODO: ICE on gimplify 16?
 
diff --git a/gcc/testsuite/g++.dg/concepts/fn3.C b/gcc/testsuite/g++.dg/concepts/fn3.C
index 3e076f62ee8..793ff6693db 100644
--- a/gcc/testsuite/g++.dg/concepts/fn3.C
+++ b/gcc/testsuite/g++.dg/concepts/fn3.C
@@ -1,5 +1,6 @@
 // { dg-do compile { target c++17_only } }
 // { dg-options "-fconcepts-ts" }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/concepts/fn9.C b/gcc/testsuite/g++.dg/concepts/fn9.C
index 51edd2fc539..8b0dee762e8 100644
--- a/gcc/testsuite/g++.dg/concepts/fn9.C
+++ b/gcc/testsuite/g++.dg/concepts/fn9.C
@@ -1,5 +1,6 @@
 // { dg-do compile { target c++17_only } }
 // { dg-options "-fconcepts-ts" }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/concepts/generic-fn.C b/gcc/testsuite/g++.dg/concepts/generic-fn.C
index 983b37092f8..0ffd30c8a01 100644
--- a/gcc/testsuite/g++.dg/concepts/generic-fn.C
+++ b/gcc/testsuite/g++.dg/concepts/generic-fn.C
@@ -1,5 +1,6 @@
 // { dg-do compile { target c++17_only } }
 // { dg-options "-fconcepts-ts" }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 #include <type_traits>
diff --git a/gcc/testsuite/g++.dg/concepts/intro2.C b/gcc/testsuite/g++.dg/concepts/intro2.C
index 5c6906c8d35..35911c6e5e2 100644
--- a/gcc/testsuite/g++.dg/concepts/intro2.C
+++ b/gcc/testsuite/g++.dg/concepts/intro2.C
@@ -1,5 +1,6 @@
 // { dg-do compile { target c++17_only } }
 // { dg-options "-fconcepts-ts" }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-access1.C b/gcc/testsuite/g++.dg/contracts/contracts-access1.C
index fdad7b1763c..7f6759e5421 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-access1.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-access1.C
@@ -107,6 +107,7 @@ int main()
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 // { dg-output "contract violation in function Base::b at .*.C:11: .*(\n|\r\n|\r)" }
 // { dg-output "contract violation in function Base::b at .*.C:12: .*(\n|\r\n|\r)" }
 // { dg-output "contract violation in function Base::b at .*.C:13: .*(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-assume2.C b/gcc/testsuite/g++.dg/contracts/contracts-assume2.C
index 3323244fefb..8b2f7218d1e 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-assume2.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-assume2.C
@@ -10,6 +10,7 @@
 // main -- unlike contracts-ignore2 which expects a failing return code
 // { dg-do run }
 // { dg-options "-std=c++2a -fcontracts -fcontract-role=default:never,assume,ignore -O1" }
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 #include <cstdio>
 
 int fun(int x) {
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-assume3.C b/gcc/testsuite/g++.dg/contracts/contracts-assume3.C
index 8dad6bb562e..ae6845a3c48 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-assume3.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-assume3.C
@@ -2,6 +2,7 @@
 // a link failure
 // { dg-do run }
 // { dg-options "-std=c++2a -fcontracts" }
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 
 int f(int t);
 
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-assume4.C b/gcc/testsuite/g++.dg/contracts/contracts-assume4.C
index 7954f531612..6d06403a5c9 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-assume4.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-assume4.C
@@ -2,6 +2,7 @@
 // not cause constexpr eval failure
 // { dg-do run }
 // { dg-options "-std=c++2a -fcontracts" }
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 
 constexpr int f(int t); // { dg-warning "used but never defined" }
 
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-config1.C b/gcc/testsuite/g++.dg/contracts/contracts-config1.C
index 2f4fa3df6e1..eb4b54dee4b 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-config1.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-config1.C
@@ -24,6 +24,7 @@ int main(int, char **)
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 // { dg-output {contract violation in function main at .*:14: false(\n|\r\n|\r)} }
 // { dg-output {\[continue:on\](\n|\r\n|\r)} }
 // { dg-output {contract violation in function main at .*:15: false(\n|\r\n|\r)} }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-constexpr1.C b/gcc/testsuite/g++.dg/contracts/contracts-constexpr1.C
index 9d0233ba9d7..f37d3d390ff 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-constexpr1.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-constexpr1.C
@@ -63,6 +63,7 @@ int main(int, char **) {
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 // { dg-output "contract violation in function ffun at .*.C:14: .*(\n|\r\n|\r)" }
 // { dg-output "contract violation in function ffun at .*.C:15: .*(\n|\r\n|\r)" }
 // { dg-output "contract violation in function ftfun<int> at .*.C:38: .*(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-deduced2.C b/gcc/testsuite/g++.dg/contracts/contracts-deduced2.C
index e67ba36a93e..9920b5ccb09 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-deduced2.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-deduced2.C
@@ -71,6 +71,7 @@ int main(int, char**) {
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 // { dg-output "contract violation in function g0 at .*.C:5: .*(\n|\r\n|\r)" }
 // { dg-output "contract violation in function g0 at .*.C:5: .*(\n|\r\n|\r)" }
 // { dg-output "contract violation in function g1 at .*.C:12: .*(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-externC.C b/gcc/testsuite/g++.dg/contracts/contracts-externC.C
index 873056b742b..f27eb4365d8 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-externC.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-externC.C
@@ -2,6 +2,7 @@
 // when wrapping functions in pre- and postconditions.
 // { dg-do link }
 // { dg-options "-std=c++2a -fcontracts -fcontract-continuation-mode=on" }
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 
 volatile int x = 10;
 
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-friend1.C b/gcc/testsuite/g++.dg/contracts/contracts-friend1.C
index 28e269ffce9..33ef2dd8bc1 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-friend1.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-friend1.C
@@ -33,6 +33,7 @@ int main(int, char**) {
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 // { dg-output "contract violation in function fn0 at .*.C:6: .*(\n|\r\n|\r)" }
 // { dg-output "contract violation in function fn2 at .*.C:19: .*(\n|\r\n|\r)" }
 // { dg-output "contract violation in function X::fns0 at .*.C:9: .*(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-ignore2.C b/gcc/testsuite/g++.dg/contracts/contracts-ignore2.C
index 5cf800a3559..c085852a3f2 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-ignore2.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-ignore2.C
@@ -2,6 +2,7 @@
 // assumptions; see contracts-assume2 for the assumed case
 // { dg-do run }
 // { dg-options "-std=c++2a -fcontracts" }
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 #include <cstdio>
 
 int fun(int x) {
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-multiline1.C b/gcc/testsuite/g++.dg/contracts/contracts-multiline1.C
index c58747724f5..b2364e4db7d 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-multiline1.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-multiline1.C
@@ -16,4 +16,5 @@ int main(int, char **)
   ]];
 }
 
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 // { dg-output "contract violation in function main at .*.C:8: x < 10 && y > 123.*(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-nested-class2.C b/gcc/testsuite/g++.dg/contracts/contracts-nested-class2.C
index 43e75edbef8..f058938ee8f 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-nested-class2.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-nested-class2.C
@@ -1,5 +1,6 @@
 // { dg-do run }
 // { dg-options "-std=c++2a -fcontracts -fcontract-continuation-mode=on" }
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 
 void gfn3(int n) [[ pre: n > 0 ]];
 
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-post2.C b/gcc/testsuite/g++.dg/contracts/contracts-post2.C
index 7665f829107..5255d2b83c3 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-post2.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-post2.C
@@ -1,5 +1,6 @@
 // { dg-do run }
 // { dg-options "-std=c++2a -fcontracts" }
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 
 int f1(int n)
   [[post r: r == n]]
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-post3.C b/gcc/testsuite/g++.dg/contracts/contracts-post3.C
index 12923282796..38f9e64d5d8 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-post3.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-post3.C
@@ -2,6 +2,7 @@
 // { dg-options "-std=c++2a -fcontracts" }
 // { dg-shouldfail "assert violation" }
 // { dg-output "contract violation in function f1" }
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 
 int f1(int n)
   [[post r: r > n]]
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-pre10.C b/gcc/testsuite/g++.dg/contracts/contracts-pre10.C
index fe855661b97..2b4acdf2bac 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-pre10.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-pre10.C
@@ -140,6 +140,7 @@ int main(int, char**)
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 // { dg-output {=================================(\n|\r\n|\r)} }
 // { dg-output {contract violation in function M::f<int> at .*:7: a > 0(\n|\r\n|\r)} }
 // { dg-output {\[continue:on\](\n|\r\n|\r)} }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-pre2.C b/gcc/testsuite/g++.dg/contracts/contracts-pre2.C
index d63d0712ff9..fc78c33b8c3 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-pre2.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-pre2.C
@@ -174,6 +174,7 @@ namespace nonnullary
   }
 }
 
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 // { dg-output "contract violation in function nullary::fun at .*.C:12: .*(\n|\r\n|\r)" }
 // { dg-output "fun::x: 10(\n|\r\n|\r)" }
 // { dg-output "contract violation in function nullary::fun2 at .*.C:18: .*(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-pre2a2.C b/gcc/testsuite/g++.dg/contracts/contracts-pre2a2.C
index f4319bf1bff..461fb6fff93 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-pre2a2.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-pre2a2.C
@@ -16,6 +16,7 @@ int main()
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 // { dg-output "contract violation in function f at .*\\.C:6: .*(\n|\r\n|\r)" }
 // { dg-output "contract violation in function f at .*\\.C:9: .*(\n|\r\n|\r)" }
 // { dg-output "contract violation in function f at .*\\.C:7: .*(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-pre3.C b/gcc/testsuite/g++.dg/contracts/contracts-pre3.C
index 70df31864f9..ff312f988fc 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-pre3.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-pre3.C
@@ -403,6 +403,7 @@ member::S member::T1::funend(int m, double n)
   return s;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 // { dg-output "contract violation in function member::T1::vfun at .*.C:37:  .*(\n|\r\n|\r)" }
 // { dg-output "contract violation in function member::T1::vfun at .*.C:38:  .*(\n|\r\n|\r)" }
 // { dg-output "vfun::x: 10(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-pre4.C b/gcc/testsuite/g++.dg/contracts/contracts-pre4.C
index ec26c02bff3..f658123aaa5 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-pre4.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-pre4.C
@@ -77,6 +77,7 @@ int main(int, char**)
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 // { dg-output "contract violation in function Base::f at .*.C:7: .*(\n|\r\n|\r)" }
 // { dg-output "Base: 0(\n|\r\n|\r)" }
 // { dg-output "contract violation in function Base::f at .*.C:7: .*(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-pre5.C b/gcc/testsuite/g++.dg/contracts/contracts-pre5.C
index 5030cec3c3c..76751015026 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-pre5.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-pre5.C
@@ -56,6 +56,7 @@ int main(int, char**)
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 // { dg-output "contract violation in function body<int> at .*.C:8: .*(\n|\r\n|\r)" }
 // { dg-output "-2(\n|\r\n|\r)" }
 // { dg-output "contract violation in function body<double> at .*.C:8: .*(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-pre7.C b/gcc/testsuite/g++.dg/contracts/contracts-pre7.C
index 715a2c692cb..567444880bc 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-pre7.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-pre7.C
@@ -108,6 +108,7 @@ int main(int, char**)
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 // { dg-output "contract violation in function ns0::f<int> at .*.C:13: .*(\n|\r\n|\r)" }
 // { dg-output "1(\n|\r\n|\r)" }
 // { dg-output "contract violation in function ns0::ns1::f<int> at .*.C:28: .*(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-pre9.C b/gcc/testsuite/g++.dg/contracts/contracts-pre9.C
index 4613be4e947..3a509bc26f5 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-pre9.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-pre9.C
@@ -108,6 +108,7 @@ int main(int, char**)
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 // { dg-output "contract violation in function S<int>::f at .*.C:14: .*(\n|\r\n|\r)" }
 // { dg-output "s_int.f.-10.: 10(\n|\r\n|\r)" }
 // { dg-output "contract violation in function S<int>::g at .*.C:10: .*(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-redecl3.C b/gcc/testsuite/g++.dg/contracts/contracts-redecl3.C
index ef6b1236ded..1cf9293ecf0 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-redecl3.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-redecl3.C
@@ -160,6 +160,7 @@ namespace nondefining
   }
 }
 
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 // { dg-output "contract violation in function defining::T1::vfun at .*.C:25: .*(\n|\r\n|\r)" }
 // { dg-output "contract violation in function defining::T1::vfun at .*.C:26: .*(\n|\r\n|\r)" }
 // { dg-output "vfun::x: 10(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-redecl4.C b/gcc/testsuite/g++.dg/contracts/contracts-redecl4.C
index e0a0c696f73..5f36159c718 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-redecl4.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-redecl4.C
@@ -33,6 +33,7 @@ int main(int, char **)
   printf("=====\n");
 }
 
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 // { dg-output "contract violation in function f at .*.C:10: .*(\n|\r\n|\r)" }
 // { dg-output "contract violation in function f at .*.C:11: .*(\n|\r\n|\r)" }
 // { dg-output "contract violation in function f at .*.C:12: .*(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-redecl6.C b/gcc/testsuite/g++.dg/contracts/contracts-redecl6.C
index 131f039e406..f8eb084b57f 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-redecl6.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-redecl6.C
@@ -160,6 +160,7 @@ namespace nondefining
   }
 }
 
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 // { dg-output "contract violation in function defining::T1::vfun at .*.C:25: .*(\n|\r\n|\r)" }
 // { dg-output "contract violation in function defining::T1::vfun at .*.C:26: .*(\n|\r\n|\r)" }
 // { dg-output "vfun::x: 10(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-redecl7.C b/gcc/testsuite/g++.dg/contracts/contracts-redecl7.C
index b7999b4bd7b..4ac76baf9d3 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-redecl7.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-redecl7.C
@@ -77,6 +77,7 @@ int main(int, char**)
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 // { dg-output "contract violation in function S::now at .*.C:9: .*(\n|\r\n|\r)" }
 // { dg-output "S::now: a: -10, t->pri: -10(\n|\r\n|\r)" }
 // { dg-output "contract violation in function now at .*.C:15: .*(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec1.C b/gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec1.C
index 1460b93479e..8f3733f4281 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec1.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec1.C
@@ -94,6 +94,7 @@ int main(int, char**)
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 // { dg-output "contract violation in function body<int> at .*.C:8: .*(\n|\r\n|\r)" }
 // { dg-output "-2(\n|\r\n|\r)" }
 // { dg-output "contract violation in function body<double> at .*.C:16: .*(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec2.C b/gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec2.C
index 82117671b2d..46b02db2812 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec2.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec2.C
@@ -304,6 +304,7 @@ int main(int, char**)
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 // { dg-output {contract violation in function body<int> at .*:9: a > 0(\n|\r\n|\r)} }
 // { dg-output {\[continue:on\](\n|\r\n|\r)} }
 // { dg-output {-2(\n|\r\n|\r)} }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec3.C b/gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec3.C
index 090c1349f98..4b293de6976 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec3.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec3.C
@@ -32,6 +32,7 @@ int main(int, char**) {
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 // { dg-output {G5 full double double, f gen R(\n|\r\n|\r)} }
 // { dg-output {G5 full double double, f gen R(\n|\r\n|\r)} }
 // { dg-output {contract violation in function G5<int, double>::f<int> at .*:10: t > 0(\n|\r\n|\r)} }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts10.C b/gcc/testsuite/g++.dg/contracts/contracts10.C
index 585af9918df..7e371c30267 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts10.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts10.C
@@ -62,6 +62,7 @@ int main()
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 // { dg-output "contract violation in function main at .*.C:47: .*(\n|\r\n|\r)" }
 // { dg-output "contract violation in function main at .*.C:48: .*(\n|\r\n|\r)" }
 // { dg-output "contract violation in function main at .*.C:49: .*(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts14.C b/gcc/testsuite/g++.dg/contracts/contracts14.C
index d9156d6875d..6154953ffdb 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts14.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts14.C
@@ -48,6 +48,7 @@ int main(int, char**) {
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // { dg-output "custom std::handle_contract_violation called: 30 .*/contracts14.C(\n|\r\n|\r)" }
 // { dg-output "synth caught direct: -30(\n|\r\n|\r)" }
 // { dg-output "custom std::handle_contract_violation called: 18 .*/contracts14.C(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts15.C b/gcc/testsuite/g++.dg/contracts/contracts15.C
index ef52a0e67f0..d538bd4a7ed 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts15.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts15.C
@@ -48,6 +48,7 @@ int main(int, char**) {
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // { dg-output "custom std::handle_contract_violation called: 30 .*/contracts15.C(\n|\r\n|\r)" }
 // { dg-output "synth caught direct: -30(\n|\r\n|\r)" }
 // { dg-output "custom std::handle_contract_violation called: 18 .*/contracts15.C(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts16.C b/gcc/testsuite/g++.dg/contracts/contracts16.C
index 5d58ab8eaa1..27704017383 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts16.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts16.C
@@ -29,6 +29,7 @@ int main(int, char**) {
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // { dg-output "custom std::handle_contract_violation called: 18 .*/contracts16.C(\n|\r\n|\r)" }
 // { dg-output "synth caught indirect: -18(\n|\r\n|\r)" }
 
diff --git a/gcc/testsuite/g++.dg/contracts/contracts17.C b/gcc/testsuite/g++.dg/contracts/contracts17.C
index f2db43346e4..2a8f65a9979 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts17.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts17.C
@@ -30,6 +30,7 @@ int main(int, char**) {
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // { dg-output "custom std::handle_contract_violation called: 19 .*/contracts17.C(\n|\r\n|\r)" }
 // { dg-shouldfail "throwing in noexcept" }
 
diff --git a/gcc/testsuite/g++.dg/contracts/contracts18.C b/gcc/testsuite/g++.dg/contracts/contracts18.C
index e8163ba4ab2..1676ea458a7 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts18.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts18.C
@@ -3,6 +3,7 @@
 //   (axiom level contracts are never checked at runtime)
 // { dg-do run }
 // { dg-options "-std=c++2a -fcontracts -fcontract-role=custom:never,ignore,ignore" }
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 
 int main()
 {
diff --git a/gcc/testsuite/g++.dg/contracts/contracts19.C b/gcc/testsuite/g++.dg/contracts/contracts19.C
index 009942de967..1e39c242772 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts19.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts19.C
@@ -14,6 +14,7 @@ int main()
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 // { dg-output "contract violation in function main at .*.C:11: .*(\n|\r\n|\r)" }
 // { dg-output "contract violation in function main at .*.C:12: .*(\n|\r\n|\r)" }
 
diff --git a/gcc/testsuite/g++.dg/contracts/contracts2.C b/gcc/testsuite/g++.dg/contracts/contracts2.C
index 9535e077d36..0de587e8606 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts2.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts2.C
@@ -3,6 +3,7 @@
 //   (axiom level contracts are never checked at runtime)
 // { dg-do run }
 // { dg-options "-std=c++2a -fcontracts" }
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 
 int main()
 {
diff --git a/gcc/testsuite/g++.dg/contracts/contracts22.C b/gcc/testsuite/g++.dg/contracts/contracts22.C
index 91e32b9d9b2..df71f924c5f 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts22.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts22.C
@@ -3,6 +3,7 @@
 // { dg-do run }
 // { dg-options "-std=c++2a -fcontracts -fcontract-mode=off" }
 // { dg-output "returning from main" }
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 #include <cstdio>
 
 int constexpr f()
diff --git a/gcc/testsuite/g++.dg/contracts/contracts24.C b/gcc/testsuite/g++.dg/contracts/contracts24.C
index 70a54f95a93..0157097f3ba 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts24.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts24.C
@@ -3,6 +3,7 @@
 //   (axiom level contracts are never checked at runtime)
 // { dg-do run }
 // { dg-options "-std=c++2a -fcontracts -fcontract-semantic=default:never -fcontract-semantic=audit:ignore -fcontract-semantic=axiom:ignore" }
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 
 int main()
 {
diff --git a/gcc/testsuite/g++.dg/contracts/contracts25.C b/gcc/testsuite/g++.dg/contracts/contracts25.C
index e954cd1389b..2d46ce59603 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts25.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts25.C
@@ -50,6 +50,7 @@ int main(int, char **) {
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 // { dg-output "contract violation in function ffun at .*.C:12: .*(\n|\r\n|\r)" }
 // { dg-output "contract violation in function ftfun<int> at .*.C:30: .*(\n|\r\n|\r)" }
 // { dg-output "contract violation in function explicitfn at .*.C:36: .*(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts3.C b/gcc/testsuite/g++.dg/contracts/contracts3.C
index 73dc7a15544..5efa4c0b58f 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts3.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts3.C
@@ -4,6 +4,7 @@
 // { dg-options "-std=c++2a -fcontracts" }
 // { dg-shouldfail "assert violation" }
 // { dg-output "contract violation in function main" }
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 
 int main()
 {
diff --git a/gcc/testsuite/g++.dg/contracts/contracts35.C b/gcc/testsuite/g++.dg/contracts/contracts35.C
index 4435ab78e50..d75640fbdcf 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts35.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts35.C
@@ -32,6 +32,7 @@ int main(int, char **) {
   return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 // { dg-output "contract violation in function S::S<int> at .*.C:8: .*(\n|\r\n|\r)" }
 // { dg-output "contract violation in function S::S<int> at .*.C:8: .*(\n|\r\n|\r)" }
 // { dg-output "S::S.T.: -1(\n|\r\n|\r)" }
diff --git a/gcc/testsuite/g++.dg/contracts/contracts4.C b/gcc/testsuite/g++.dg/contracts/contracts4.C
index a43fb9f98e2..d3231e50c33 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts4.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts4.C
@@ -2,6 +2,7 @@
 // error during runtime when the contract build level is default
 // { dg-do run }
 // { dg-options "-std=c++2a -fcontracts" }
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 
 int main()
 {
diff --git a/gcc/testsuite/g++.dg/contracts/contracts5.C b/gcc/testsuite/g++.dg/contracts/contracts5.C
index 3c591833bf1..ecd854a4dc6 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts5.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts5.C
@@ -4,6 +4,7 @@
 // { dg-options "-std=c++2a -fcontracts -fcontract-build-level=audit" }
 // { dg-shouldfail "assert violation" }
 // { dg-output "contract violation in function main" }
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 
 int main()
 {
diff --git a/gcc/testsuite/g++.dg/contracts/contracts6.C b/gcc/testsuite/g++.dg/contracts/contracts6.C
index 59c010e5d39..42622fd2e18 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts6.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts6.C
@@ -2,6 +2,7 @@
 // error during runtime when the contract build level is off
 // { dg-do run }
 // { dg-options "-std=c++2a -fcontracts -fcontract-build-level=off" }
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 
 int main()
 {
diff --git a/gcc/testsuite/g++.dg/contracts/contracts7.C b/gcc/testsuite/g++.dg/contracts/contracts7.C
index 9e7cae9433e..0828f8274b3 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts7.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts7.C
@@ -5,6 +5,7 @@
 // { dg-do run }
 // { dg-options "-std=c++2a -fcontracts -fcontract-continuation-mode=on" }
 // { dg-output "contract violation in function main" }
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 
 int main()
 {
diff --git a/gcc/testsuite/g++.dg/contracts/contracts9.C b/gcc/testsuite/g++.dg/contracts/contracts9.C
index 09a1a6532c5..12cc8e4353c 100644
--- a/gcc/testsuite/g++.dg/contracts/contracts9.C
+++ b/gcc/testsuite/g++.dg/contracts/contracts9.C
@@ -35,6 +35,7 @@ int main()
   // return 0;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for stdc++exp" { ! hostedlib } }
 // { dg-output {contract violation in function fun1<int> at .*:12: \(long long\)b > 0(\n|\r\n|\r)} }
 // { dg-output {\[continue:on\](\n|\r\n|\r)} }
 // { dg-output {contract violation in function fun1<double> at .*:11: a > 0(\n|\r\n|\r)} }
diff --git a/gcc/testsuite/g++.dg/coroutines/pr100611.C b/gcc/testsuite/g++.dg/coroutines/pr100611.C
index 14edf4870a1..9f0228e098c 100644
--- a/gcc/testsuite/g++.dg/coroutines/pr100611.C
+++ b/gcc/testsuite/g++.dg/coroutines/pr100611.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 /*
   Test that instances created in capture clauses within co_await statements do not
   get 'promoted'. This would lead to the members destructor getting called more
diff --git a/gcc/testsuite/g++.dg/coroutines/pr100772-b.C b/gcc/testsuite/g++.dg/coroutines/pr100772-b.C
index 4ef80a99594..5ffd3a427c1 100644
--- a/gcc/testsuite/g++.dg/coroutines/pr100772-b.C
+++ b/gcc/testsuite/g++.dg/coroutines/pr100772-b.C
@@ -1,3 +1,4 @@
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 #if !__has_include(<coroutine>) \
   && __has_include(<experimental/coroutine>) // for __clang__
 #include <experimental/coroutine>
diff --git a/gcc/testsuite/g++.dg/coroutines/pr101133.C b/gcc/testsuite/g++.dg/coroutines/pr101133.C
index 6c6bc163251..5bc9103897c 100644
--- a/gcc/testsuite/g++.dg/coroutines/pr101133.C
+++ b/gcc/testsuite/g++.dg/coroutines/pr101133.C
@@ -1,3 +1,4 @@
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 #include <coroutine>
 #include <string>
 
diff --git a/gcc/testsuite/g++.dg/coroutines/pr101367.C b/gcc/testsuite/g++.dg/coroutines/pr101367.C
index 0a9e5bee7d1..435190eca7d 100644
--- a/gcc/testsuite/g++.dg/coroutines/pr101367.C
+++ b/gcc/testsuite/g++.dg/coroutines/pr101367.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 
 #include <coroutine>
 using namespace std;
diff --git a/gcc/testsuite/g++.dg/coroutines/pr101765.C b/gcc/testsuite/g++.dg/coroutines/pr101765.C
index 49a49d11299..4a35c1c55f6 100644
--- a/gcc/testsuite/g++.dg/coroutines/pr101765.C
+++ b/gcc/testsuite/g++.dg/coroutines/pr101765.C
@@ -1,6 +1,7 @@
 // We cannot compile this yet, much run it - but one day it might be
 // feasible, so do the minimum for now.
 // { dg-additional-options " -fsyntax-only -Wno-vla" }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #include "coro.h"
 
diff --git a/gcc/testsuite/g++.dg/coroutines/pr101976.C b/gcc/testsuite/g++.dg/coroutines/pr101976.C
index 1854ba001bb..53d02a4c4e0 100644
--- a/gcc/testsuite/g++.dg/coroutines/pr101976.C
+++ b/gcc/testsuite/g++.dg/coroutines/pr101976.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 
 /*
   Test that members of temporary instances in co_await statements do not get
diff --git a/gcc/testsuite/g++.dg/coroutines/pr102454.C b/gcc/testsuite/g++.dg/coroutines/pr102454.C
index 41aeda7b973..9cb59dbc194 100644
--- a/gcc/testsuite/g++.dg/coroutines/pr102454.C
+++ b/gcc/testsuite/g++.dg/coroutines/pr102454.C
@@ -1,4 +1,5 @@
 //  { dg-additional-options "-fno-exceptions" }
+//  { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <coroutine>
 #include <string>
diff --git a/gcc/testsuite/g++.dg/coroutines/pr104051.C b/gcc/testsuite/g++.dg/coroutines/pr104051.C
index ce7ae55405a..f77a915af74 100644
--- a/gcc/testsuite/g++.dg/coroutines/pr104051.C
+++ b/gcc/testsuite/g++.dg/coroutines/pr104051.C
@@ -1,4 +1,5 @@
 // { dg-additional-options "-fsyntax-only" }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 #include <coroutine>
 #include <vector>
 template <typename> struct promise {
diff --git a/gcc/testsuite/g++.dg/coroutines/pr94288.C b/gcc/testsuite/g++.dg/coroutines/pr94288.C
index 2557e3e0f2b..61424aee99b 100644
--- a/gcc/testsuite/g++.dg/coroutines/pr94288.C
+++ b/gcc/testsuite/g++.dg/coroutines/pr94288.C
@@ -1,4 +1,5 @@
 //  { dg-additional-options  "-w" }
+//  { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 #include "coro.h"
 
diff --git a/gcc/testsuite/g++.dg/coroutines/pr95477.C b/gcc/testsuite/g++.dg/coroutines/pr95477.C
index 7050aee0078..38fb5c80b07 100644
--- a/gcc/testsuite/g++.dg/coroutines/pr95477.C
+++ b/gcc/testsuite/g++.dg/coroutines/pr95477.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #include "coro.h"
 
diff --git a/gcc/testsuite/g++.dg/coroutines/pr95520.C b/gcc/testsuite/g++.dg/coroutines/pr95520.C
index 4849b0789c7..9776ec57911 100644
--- a/gcc/testsuite/g++.dg/coroutines/pr95520.C
+++ b/gcc/testsuite/g++.dg/coroutines/pr95520.C
@@ -1,5 +1,6 @@
 // { dg-do run }
 // { dg-output "coroutine name: MyFoo" }
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 #include <coroutine>
 #include <cstdio>
 
diff --git a/gcc/testsuite/g++.dg/coroutines/pr95599.C b/gcc/testsuite/g++.dg/coroutines/pr95599.C
index ec97a4aa165..e94bf7d9752 100644
--- a/gcc/testsuite/g++.dg/coroutines/pr95599.C
+++ b/gcc/testsuite/g++.dg/coroutines/pr95599.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // The simplest co_await we can do.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/pr95711.C b/gcc/testsuite/g++.dg/coroutines/pr95711.C
index 682a221509e..ba663ec1544 100644
--- a/gcc/testsuite/g++.dg/coroutines/pr95711.C
+++ b/gcc/testsuite/g++.dg/coroutines/pr95711.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #if __has_include(<coroutine>)
 #include <coroutine>
diff --git a/gcc/testsuite/g++.dg/coroutines/pr95736.C b/gcc/testsuite/g++.dg/coroutines/pr95736.C
index 0be5168a8d2..55f52bf4e86 100644
--- a/gcc/testsuite/g++.dg/coroutines/pr95736.C
+++ b/gcc/testsuite/g++.dg/coroutines/pr95736.C
@@ -1,3 +1,4 @@
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 #include <iostream>
 #include <exception>
 #include <cassert>
diff --git a/gcc/testsuite/g++.dg/coroutines/pr97587.C b/gcc/testsuite/g++.dg/coroutines/pr97587.C
index 081c3a94b3c..03da6c30923 100644
--- a/gcc/testsuite/g++.dg/coroutines/pr97587.C
+++ b/gcc/testsuite/g++.dg/coroutines/pr97587.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include<cassert>
 #include<coroutine>
diff --git a/gcc/testsuite/g++.dg/coroutines/pr99576_1.C b/gcc/testsuite/g++.dg/coroutines/pr99576_1.C
index 612f0cda2b1..01db4d21424 100644
--- a/gcc/testsuite/g++.dg/coroutines/pr99576_1.C
+++ b/gcc/testsuite/g++.dg/coroutines/pr99576_1.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 /*
   Test that instances created in capture clauses within co_await statements do not get
   'promoted'. This would lead to their members destructors getting called more
diff --git a/gcc/testsuite/g++.dg/coroutines/pr99576_2.C b/gcc/testsuite/g++.dg/coroutines/pr99576_2.C
index b7371d64480..cd3da6426e2 100644
--- a/gcc/testsuite/g++.dg/coroutines/pr99576_2.C
+++ b/gcc/testsuite/g++.dg/coroutines/pr99576_2.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 /*
   Test that members of temporary awaitables in co_await statements do not get
   'promoted'. This would lead to the members destructor getting called more
diff --git a/gcc/testsuite/g++.dg/coroutines/ramp-return-a.C b/gcc/testsuite/g++.dg/coroutines/ramp-return-a.C
index c6e445e0529..fcea6f9975f 100644
--- a/gcc/testsuite/g++.dg/coroutines/ramp-return-a.C
+++ b/gcc/testsuite/g++.dg/coroutines/ramp-return-a.C
@@ -1,4 +1,5 @@
 //  { dg-additional-options "-std=c++14" }
+//  { dg-skip-if "requires hosted libstdc++ for vector in ramp-return.h" { ! hostedlib } }
 
 #include "ramp-return.h"
 
diff --git a/gcc/testsuite/g++.dg/coroutines/ramp-return-b.C b/gcc/testsuite/g++.dg/coroutines/ramp-return-b.C
index d0e5d1f3c7f..2ab457abd94 100644
--- a/gcc/testsuite/g++.dg/coroutines/ramp-return-b.C
+++ b/gcc/testsuite/g++.dg/coroutines/ramp-return-b.C
@@ -1,4 +1,5 @@
 //  { dg-options "-fcoroutines -std=c++14" }
+//  { dg-skip-if "requires hosted libstdc++ for vector in ramp-return.h" { ! hostedlib } }
 #define DELETE_COPY_CTOR 1
 #include "ramp-return.h"
 
diff --git a/gcc/testsuite/g++.dg/coroutines/ramp-return-c.C b/gcc/testsuite/g++.dg/coroutines/ramp-return-c.C
index e030ca1b7ae..0992924b434 100644
--- a/gcc/testsuite/g++.dg/coroutines/ramp-return-c.C
+++ b/gcc/testsuite/g++.dg/coroutines/ramp-return-c.C
@@ -1,4 +1,5 @@
 //  { dg-additional-options "-std=c++17" }
+//  { dg-skip-if "requires hosted libstdc++ for vector in ramp-return.h" { ! hostedlib } }
 #define DELETE_COPY_CTOR 1
 #include "ramp-return.h"
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/alloc-00-gro-on-alloc-fail.C b/gcc/testsuite/g++.dg/coroutines/torture/alloc-00-gro-on-alloc-fail.C
index ca07a3a03d0..72ba97c5ac4 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/alloc-00-gro-on-alloc-fail.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/alloc-00-gro-on-alloc-fail.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 /* check the code-gen for the failed alloc return.
    Here we use an allocator that doesn't fail so that the code
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/alloc-01-overload-newdel.C b/gcc/testsuite/g++.dg/coroutines/torture/alloc-01-overload-newdel.C
index 98babcaf4f4..0e7c8555fc9 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/alloc-01-overload-newdel.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/alloc-01-overload-newdel.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // check codegen for overloaded simple operator new/delete.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/alloc-02-fail-new-grooaf-check.C b/gcc/testsuite/g++.dg/coroutines/torture/alloc-02-fail-new-grooaf-check.C
index 7911cc8c43d..61e19bd0727 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/alloc-02-fail-new-grooaf-check.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/alloc-02-fail-new-grooaf-check.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 /* check the code-gen for the failed alloc return.
    In this case, we use an operator new that always fails.
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/alloc-03-overload-new-1.C b/gcc/testsuite/g++.dg/coroutines/torture/alloc-03-overload-new-1.C
index b1d6743fd91..3ae446fecf6 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/alloc-03-overload-new-1.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/alloc-03-overload-new-1.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 /* check codegen for overloaded simple operator new/delete.
    here check that we prefer the overload that accounts the function
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/alloc-04-overload-del-use-two-args.C b/gcc/testsuite/g++.dg/coroutines/torture/alloc-04-overload-del-use-two-args.C
index 2987c6ef116..a6b48729a56 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/alloc-04-overload-del-use-two-args.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/alloc-04-overload-del-use-two-args.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 /* check that we use the deallocation function with two args when both
    are available.  */
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/call-00-co-aw-arg.C b/gcc/testsuite/g++.dg/coroutines/torture/call-00-co-aw-arg.C
index 19e3ec1fe68..f86bbc78871 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/call-00-co-aw-arg.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/call-00-co-aw-arg.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Check that we can use co_await as a call parm.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/call-01-multiple-co-aw.C b/gcc/testsuite/g++.dg/coroutines/torture/call-01-multiple-co-aw.C
index 573f4f86a52..29ba751d427 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/call-01-multiple-co-aw.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/call-01-multiple-co-aw.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Check that we can use multiple co_awaits as a call parm.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/call-02-temp-co-aw.C b/gcc/testsuite/g++.dg/coroutines/torture/call-02-temp-co-aw.C
index 8ae07aa7a45..322cde107a6 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/call-02-temp-co-aw.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/call-02-temp-co-aw.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Check  foo (compiler temp, co_await).
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/call-03-temp-ref-co-aw.C b/gcc/testsuite/g++.dg/coroutines/torture/call-03-temp-ref-co-aw.C
index 967cb1b9baa..f42c96af282 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/call-03-temp-ref-co-aw.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/call-03-temp-ref-co-aw.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Check  foo (compiler temp, co_await).
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/class-00-co-ret.C b/gcc/testsuite/g++.dg/coroutines/torture/class-00-co-ret.C
index 932fe4b2830..bce831e98b7 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/class-00-co-ret.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/class-00-co-ret.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Simplest class.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/class-01-co-ret-parm.C b/gcc/testsuite/g++.dg/coroutines/torture/class-01-co-ret-parm.C
index 0bd477044b4..b9398e858c7 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/class-01-co-ret-parm.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/class-01-co-ret-parm.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Class with parm capture
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/class-02-templ-parm.C b/gcc/testsuite/g++.dg/coroutines/torture/class-02-templ-parm.C
index 0cc6069c32f..02ad0faa8c0 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/class-02-templ-parm.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/class-02-templ-parm.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // template parm in a class
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/class-03-operator-templ-parm.C b/gcc/testsuite/g++.dg/coroutines/torture/class-03-operator-templ-parm.C
index 2d888a74558..e91f068efd2 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/class-03-operator-templ-parm.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/class-03-operator-templ-parm.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // template parm in a class
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/class-04-lambda-1.C b/gcc/testsuite/g++.dg/coroutines/torture/class-04-lambda-1.C
index e191c20ac06..9c776289b99 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/class-04-lambda-1.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/class-04-lambda-1.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // template parm in a class
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/class-05-lambda-capture-copy-local.C b/gcc/testsuite/g++.dg/coroutines/torture/class-05-lambda-capture-copy-local.C
index 9bb76d246c3..1f7e2a63f95 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/class-05-lambda-capture-copy-local.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/class-05-lambda-capture-copy-local.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // template parm in a class
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/class-06-lambda-capture-ref.C b/gcc/testsuite/g++.dg/coroutines/torture/class-06-lambda-capture-ref.C
index db60132b0ee..33dde7914e2 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/class-06-lambda-capture-ref.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/class-06-lambda-capture-ref.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // template parm in a class
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/class-07-data-member.C b/gcc/testsuite/g++.dg/coroutines/torture/class-07-data-member.C
index 00a0df69758..86d946c7b35 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/class-07-data-member.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/class-07-data-member.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Show that we are correctly accessing class variables.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-00-trivial.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-00-trivial.C
index 6de751af53c..0f09162ae7d 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-00-trivial.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-00-trivial.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // The simplest co_await we can do.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-01-with-value.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-01-with-value.C
index ddff64530b3..070a05ac178 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-01-with-value.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-01-with-value.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 /* The simplest valued co_await we can do.  */
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-02-xform.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-02-xform.C
index 8d32c73503f..74f1a10c1fb 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-02-xform.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-02-xform.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test of basic await transform, no local state.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-03-rhs-op.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-03-rhs-op.C
index 29dcc5f7a2c..3fb8167115b 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-03-rhs-op.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-03-rhs-op.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Basic check of co_await with an expression to await transform.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-04-control-flow.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-04-control-flow.C
index fd201f90481..e3f6ee436cb 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-04-control-flow.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-04-control-flow.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Check correct operation of await transform.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-05-loop.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-05-loop.C
index 58cdced7313..33716288c2e 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-05-loop.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-05-loop.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Check correct operation of co_await in a loop without local state.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-06-ovl.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-06-ovl.C
index a3f7fa0083b..4cb8eb7ea4e 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-06-ovl.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-06-ovl.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Basic check of the co_await operator overload.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-07-tmpl.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-07-tmpl.C
index 8915786dd1e..27358cb9510 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-07-tmpl.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-07-tmpl.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Check that we correctly operate when the coroutine object is templated.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-08-cascade.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-08-cascade.C
index 51eedc57421..a3efa473b69 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-08-cascade.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-08-cascade.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Check cascaded co_await operations.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-09-pair.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-09-pair.C
index e3aba4d56ef..fc4ce7c62d3 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-09-pair.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-09-pair.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #include "../coro.h"
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-10-template-fn-arg.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-10-template-fn-arg.C
index 71a5b18c3cc..3e4fe3662f1 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-10-template-fn-arg.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-10-template-fn-arg.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Check type dependent function parms. 
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-11-forwarding.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-11-forwarding.C
index 6e59c88447b..1ff4eb09e20 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-11-forwarding.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-11-forwarding.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test of forwarding a templated awaitable to co_await.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-12-operator-2.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-12-operator-2.C
index 91dd1927bfd..4b3e9334f3d 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-12-operator-2.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-12-operator-2.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Basic check of the co_await operator overload.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-13-return-ref.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-13-return-ref.C
index 78f2d5b9d1b..12e6c063777 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-13-return-ref.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-13-return-ref.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 /* The simplest valued co_await we can do.  */
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-14-return-ref-to-auto.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-14-return-ref-to-auto.C
index 6b1d5bf5a43..3d133ce2aa9 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-14-return-ref-to-auto.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-14-return-ref-to-auto.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 /* The simplest valued co_await we can do.  */
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-15-return-non-triv.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-15-return-non-triv.C
index 70c974bc56a..e79d9da6b64 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-15-return-non-triv.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-15-return-non-triv.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 /* Check that we handle await_resume for a non-trivial type.  */
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-16-template-traits.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-16-template-traits.C
index 4e670b1c308..8be2597fffb 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-16-template-traits.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-16-template-traits.C
@@ -1,4 +1,5 @@
 //  { dg-do compile }
+//  { dg-skip-if "requires hosted libstdc++ for chrono" { ! hostedlib } }
 //  Test we create co_await_expr with dependent type rather than type of awaitable class
 
 #include "../coro.h"
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-17-capture-comp-ref.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-17-capture-comp-ref.C
index 3eefe9e775d..5a7b9fd0761 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-17-capture-comp-ref.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-17-capture-comp-ref.C
@@ -1,4 +1,5 @@
 //  { dg-do run { target c++17 } }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #include "../coro.h"
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-18-if-cond.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-18-if-cond.C
index 6b05cfb44ac..3c543602802 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-18-if-cond.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-18-if-cond.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test co-await in if condition.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-19-while-cond.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-19-while-cond.C
index 2cd37616aaa..1b7f09d93e5 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-19-while-cond.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-19-while-cond.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test co-await in while condition.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-20-do-while-cond.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-20-do-while-cond.C
index bb1e97a6ef0..d4743e2a548 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-20-do-while-cond.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-20-do-while-cond.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test co-await in do-while conditional
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-21-switch-value.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-21-switch-value.C
index b5e1bf38050..beaf12f4782 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-21-switch-value.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-21-switch-value.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test co-await in while condition.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-22-truth-and-of-if.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-22-truth-and-of-if.C
index 54659741cbe..dee0a99c4b3 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-22-truth-and-of-if.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-22-truth-and-of-if.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test co-await in while condition.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-24-for-init.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-24-for-init.C
index 1bf2f6d912d..45ea0de7430 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-24-for-init.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-24-for-init.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test co-await in while condition.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-25-for-condition.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-25-for-condition.C
index 2208e341574..08d17a5e889 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-25-for-condition.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-25-for-condition.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test co-await in while condition.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-26-for-iteration-expr.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-26-for-iteration-expr.C
index f361fb5ecea..b4ee6acf06e 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-26-for-iteration-expr.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-26-for-iteration-expr.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test co-await in while condition.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-00-void-return-is-ready.C b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-00-void-return-is-ready.C
index dd0a3b749aa..016db878ad5 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-00-void-return-is-ready.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-00-void-return-is-ready.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Basic functionality check, co_return.
 // Here we check the case that initial suspend is "never", so that the co-
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-01-void-return-is-suspend.C b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-01-void-return-is-suspend.C
index 1f4c3debc03..2f388b5f532 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-01-void-return-is-suspend.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-01-void-return-is-suspend.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Basic functionality check, co_return.
 // Here we check the case that initial suspend is "always".
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-03-different-GRO-type.C b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-03-different-GRO-type.C
index 1a095c627ea..871307d3b19 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-03-different-GRO-type.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-03-different-GRO-type.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // GRO differs from the eventual return type.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-04-GRO-nontriv.C b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-04-GRO-nontriv.C
index abb789aa7ae..928193ac843 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-04-GRO-nontriv.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-04-GRO-nontriv.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // GRO differs from eventual return type and has non-trivial dtor.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-05-return-value.C b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-05-return-value.C
index 42b80ff6bb6..dbf5c973fe3 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-05-return-value.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-05-return-value.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test returning an int.
 // We will use the promise to contain this to avoid having to include
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-06-template-promise-val-1.C b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-06-template-promise-val-1.C
index 91f591a30fc..0a8b90063a4 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-06-template-promise-val-1.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-06-template-promise-val-1.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test returning a T.
 // We will use the promise to contain this to avoid having to include
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-07-void-cast-expr.C b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-07-void-cast-expr.C
index b1a06f28495..8eedbfac6f1 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-07-void-cast-expr.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-07-void-cast-expr.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Check that "co_return (void)expression;" evaluates expression once.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-08-template-cast-ret.C b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-08-template-cast-ret.C
index ac4cca49e98..c05806e31ef 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-08-template-cast-ret.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-08-template-cast-ret.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test templated co-return.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-09-bool-await-susp.C b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-09-bool-await-susp.C
index 33683226f63..98a822189a5 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-09-bool-await-susp.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-09-bool-await-susp.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // test boolean return from await_suspend ().
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-10-expression-evaluates-once.C b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-10-expression-evaluates-once.C
index 7b07be5f448..90d99efdd34 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-10-expression-evaluates-once.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-10-expression-evaluates-once.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Check that "co_return expression;" only evaluates expression once.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-11-co-ret-co-await.C b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-11-co-ret-co-await.C
index 06939107d80..f69a99a3f99 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-11-co-ret-co-await.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-11-co-ret-co-await.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Check co_return co_await 
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-12-co-ret-fun-co-await.C b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-12-co-ret-fun-co-await.C
index 50124c080b3..516b89bc6e1 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-12-co-ret-fun-co-await.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-12-co-ret-fun-co-await.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Check co_return function (co_await)
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-13-template-2.C b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-13-template-2.C
index 9d4a4de8ebe..f3aee497730 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-13-template-2.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-13-template-2.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Check type dependent function parms. 
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-14-template-3.C b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-14-template-3.C
index ebc1adba821..3dfa6caa66e 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-14-template-3.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-14-template-3.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Check type dependent function parms. 
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-15-default-return_void.C b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-15-default-return_void.C
index 300052c94ae..81a7da276ac 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-15-default-return_void.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-15-default-return_void.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++17 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 //
 // Check if default return_void is insert at correct position.
 #include <cassert>
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-16-simple-control-flow.C b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-16-simple-control-flow.C
index 112aa57ca61..d7bd00e0242 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-16-simple-control-flow.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-16-simple-control-flow.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test returning an int.
 // We will use the promise to contain this to avoid having to include
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-17-void-ret-coro.C b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-17-void-ret-coro.C
index 9c9d2fa816d..6625e4476cb 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-17-void-ret-coro.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-17-void-ret-coro.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test the ability to specialize the coroutine traits to include
 // non-class type coroutine ramp return values.
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-yield-00-triv.C b/gcc/testsuite/g++.dg/coroutines/torture/co-yield-00-triv.C
index 15e390ed200..3d88c37ed57 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-yield-00-triv.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-yield-00-triv.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test yielding an int.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-yield-01-multi.C b/gcc/testsuite/g++.dg/coroutines/torture/co-yield-01-multi.C
index 5df69c7f156..e1c5fba294d 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-yield-01-multi.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-yield-01-multi.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test yielding an int.
 // We will use the promise to contain this to avoid having to include
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-yield-02-loop.C b/gcc/testsuite/g++.dg/coroutines/torture/co-yield-02-loop.C
index 8d4f1d5d823..f21e3049573 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-yield-02-loop.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-yield-02-loop.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test co_yield in a loop with no local state.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-yield-03-tmpl.C b/gcc/testsuite/g++.dg/coroutines/torture/co-yield-03-tmpl.C
index 45fc8d71a07..005423fa69b 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-yield-03-tmpl.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-yield-03-tmpl.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test co_yield in templated code.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-yield-04-complex-local-state.C b/gcc/testsuite/g++.dg/coroutines/torture/co-yield-04-complex-local-state.C
index f97bd2377f7..f4b1b9f55ad 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-yield-04-complex-local-state.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-yield-04-complex-local-state.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 // using non-trivial types in the coro.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-yield-05-co-aw.C b/gcc/testsuite/g++.dg/coroutines/torture/co-yield-05-co-aw.C
index 043f97b6e1b..bf2f9101702 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-yield-05-co-aw.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-yield-05-co-aw.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Check co_return co_await 
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-yield-06-fun-parm.C b/gcc/testsuite/g++.dg/coroutines/torture/co-yield-06-fun-parm.C
index c74e44d15d5..9cf148b7683 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-yield-06-fun-parm.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-yield-06-fun-parm.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Check co_return co_await 
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-yield-07-template-fn-param.C b/gcc/testsuite/g++.dg/coroutines/torture/co-yield-07-template-fn-param.C
index 74dae633955..ab392a2a105 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-yield-07-template-fn-param.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-yield-07-template-fn-param.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Check type dependent function parms. 
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-yield-08-more-refs.C b/gcc/testsuite/g++.dg/coroutines/torture/co-yield-08-more-refs.C
index 8e39127a1ae..d2a82bf4410 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-yield-08-more-refs.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-yield-08-more-refs.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Check co_return co_await 
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-yield-09-more-templ-refs.C b/gcc/testsuite/g++.dg/coroutines/torture/co-yield-09-more-templ-refs.C
index 3abbe1c43ab..943c869a58b 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/co-yield-09-more-templ-refs.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/co-yield-09-more-templ-refs.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Check co_return co_await 
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/exceptions-test-0.C b/gcc/testsuite/g++.dg/coroutines/torture/exceptions-test-0.C
index 85135fc50c4..42480a03b88 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/exceptions-test-0.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/exceptions-test-0.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test exceptions.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/exceptions-test-01-n4849-a.C b/gcc/testsuite/g++.dg/coroutines/torture/exceptions-test-01-n4849-a.C
index 6433b62109f..e4303dab6a2 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/exceptions-test-01-n4849-a.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/exceptions-test-01-n4849-a.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test exceptions in the initial await expression, per n4849.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/extern-c-coroutine.C b/gcc/testsuite/g++.dg/coroutines/torture/extern-c-coroutine.C
index c178a80ee4b..c28a641bc2a 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/extern-c-coroutine.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/extern-c-coroutine.C
@@ -1,3 +1,5 @@
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
+
 #include <coroutine>
 #include <cstdio>
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/func-params-00.C b/gcc/testsuite/g++.dg/coroutines/torture/func-params-00.C
index b5716972d47..7fb169a6c7d 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/func-params-00.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/func-params-00.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test promise construction from function args list.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/func-params-01.C b/gcc/testsuite/g++.dg/coroutines/torture/func-params-01.C
index f530431a6bb..5459d2a4e49 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/func-params-01.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/func-params-01.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Simplest test that we correctly handle function params in the body
 // of the coroutine.  No local state, just the parm.
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/func-params-02.C b/gcc/testsuite/g++.dg/coroutines/torture/func-params-02.C
index 396b438cb2d..a9b99ca4939 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/func-params-02.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/func-params-02.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test that we correctly re-write multiple uses of a function param
 // in the body.
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/func-params-03.C b/gcc/testsuite/g++.dg/coroutines/torture/func-params-03.C
index bf699722a1a..6fc801ff299 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/func-params-03.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/func-params-03.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test that we can use a function param in a co_xxxx status.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/func-params-04.C b/gcc/testsuite/g++.dg/coroutines/torture/func-params-04.C
index c90c1525e40..a8189f4c40e 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/func-params-04.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/func-params-04.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test that we can manage a constructed param copy.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/func-params-05.C b/gcc/testsuite/g++.dg/coroutines/torture/func-params-05.C
index 8bdb2b5d0f7..b853d97bfef 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/func-params-05.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/func-params-05.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test that we can manage a constructed param reference
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/func-params-06.C b/gcc/testsuite/g++.dg/coroutines/torture/func-params-06.C
index cbcfe67ff1a..6953dcb46ed 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/func-params-06.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/func-params-06.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // check references are handled as expected.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/func-params-07.C b/gcc/testsuite/g++.dg/coroutines/torture/func-params-07.C
index 7f3bb3cc782..03044ef4b31 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/func-params-07.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/func-params-07.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test that we copy simple parms correctly by value, reference or
 // rvalue reference.
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/func-params-08.C b/gcc/testsuite/g++.dg/coroutines/torture/func-params-08.C
index cce1521b226..20f407d30cc 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/func-params-08.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/func-params-08.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 // Check that we correctly handle params with non-trivial DTORs and
 // use the correct copy/move CTORs.
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/func-params-09-awaitable-parms.C b/gcc/testsuite/g++.dg/coroutines/torture/func-params-09-awaitable-parms.C
index 81430bf4d54..d852666925b 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/func-params-09-awaitable-parms.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/func-params-09-awaitable-parms.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 // Check that we correctly handle params with non-trivial DTORs and
 // use the correct copy/move CTORs.
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/lambda-00-co-ret.C b/gcc/testsuite/g++.dg/coroutines/torture/lambda-00-co-ret.C
index 61e284d5c8f..7b77cecec64 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/lambda-00-co-ret.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/lambda-00-co-ret.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Simplest lambda
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/lambda-01-co-ret-parm.C b/gcc/testsuite/g++.dg/coroutines/torture/lambda-01-co-ret-parm.C
index 378eedc6d89..925f1d0d585 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/lambda-01-co-ret-parm.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/lambda-01-co-ret-parm.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Lambda with parm
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/lambda-02-co-yield-values.C b/gcc/testsuite/g++.dg/coroutines/torture/lambda-02-co-yield-values.C
index a6f592cd77a..20609ce831e 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/lambda-02-co-yield-values.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/lambda-02-co-yield-values.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // lambda with parm and local state
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/lambda-03-auto-parm-1.C b/gcc/testsuite/g++.dg/coroutines/torture/lambda-03-auto-parm-1.C
index bfa5400225d..9c8ddf2a992 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/lambda-03-auto-parm-1.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/lambda-03-auto-parm-1.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // generic Lambda with auto parm (c++14)
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/lambda-04-templ-parm.C b/gcc/testsuite/g++.dg/coroutines/torture/lambda-04-templ-parm.C
index adf31e22dba..ec8a9940d3a 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/lambda-04-templ-parm.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/lambda-04-templ-parm.C
@@ -1,5 +1,6 @@
 // { dg-do run }
 // { dg-additional-options "-std=c++2a" }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // generic Lambda with template parm (from c++20)
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/lambda-05-capture-copy-local.C b/gcc/testsuite/g++.dg/coroutines/torture/lambda-05-capture-copy-local.C
index 7cd6648cca6..04dcfa26458 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/lambda-05-capture-copy-local.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/lambda-05-capture-copy-local.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // lambda with parm and local state
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/lambda-06-multi-capture.C b/gcc/testsuite/g++.dg/coroutines/torture/lambda-06-multi-capture.C
index 7b445d3d9cd..c2f2e93dc66 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/lambda-06-multi-capture.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/lambda-06-multi-capture.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // lambda with parm and local state
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/lambda-07-multi-yield.C b/gcc/testsuite/g++.dg/coroutines/torture/lambda-07-multi-yield.C
index 2bd58cbf2ec..bc97507372c 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/lambda-07-multi-yield.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/lambda-07-multi-yield.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // lambda with parm and local state
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/lambda-08-co-ret-parm-ref.C b/gcc/testsuite/g++.dg/coroutines/torture/lambda-08-co-ret-parm-ref.C
index 4d5a44fe29a..bfce44f0c9e 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/lambda-08-co-ret-parm-ref.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/lambda-08-co-ret-parm-ref.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test that we can use a function param in a co_xxxx status.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/lambda-09-init-captures.C b/gcc/testsuite/g++.dg/coroutines/torture/lambda-09-init-captures.C
index 920d6eaac82..ae7d9fa84c7 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/lambda-09-init-captures.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/lambda-09-init-captures.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // lambda with initialized captures
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/lambda-10-mutable.C b/gcc/testsuite/g++.dg/coroutines/torture/lambda-10-mutable.C
index a10816ccd84..a7fa4c7a21f 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/lambda-10-mutable.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/lambda-10-mutable.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // lambda with mutable closure object.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/local-var-00-const.C b/gcc/testsuite/g++.dg/coroutines/torture/local-var-00-const.C
index a8956457dcd..f6c44e9278d 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/local-var-00-const.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/local-var-00-const.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Simplest local decl.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/local-var-01-single.C b/gcc/testsuite/g++.dg/coroutines/torture/local-var-01-single.C
index 69a5b707563..cd35d978814 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/local-var-01-single.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/local-var-01-single.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Simplest local var
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/local-var-02-conditional.C b/gcc/testsuite/g++.dg/coroutines/torture/local-var-02-conditional.C
index f232edabdae..90aa008227b 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/local-var-02-conditional.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/local-var-02-conditional.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test local vars in nested scopes
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/local-var-03-with-awaits.C b/gcc/testsuite/g++.dg/coroutines/torture/local-var-03-with-awaits.C
index bd06db53d48..f4209ab48d4 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/local-var-03-with-awaits.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/local-var-03-with-awaits.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test modifying a local var and yielding several instances of it.
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/local-var-04-hiding-nested-scopes.C b/gcc/testsuite/g++.dg/coroutines/torture/local-var-04-hiding-nested-scopes.C
index 419eb6b6467..b4c3f49bd59 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/local-var-04-hiding-nested-scopes.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/local-var-04-hiding-nested-scopes.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Test modifying a local var across nested scopes containing vars
 // hiding those at outer scopes.
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/local-var-05-awaitable.C b/gcc/testsuite/g++.dg/coroutines/torture/local-var-05-awaitable.C
index 7ea00434c87..e7a8491ab1a 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/local-var-05-awaitable.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/local-var-05-awaitable.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 // Test the case where the awaitables are local vars, and therefore already
 // have a frame representation - and should not be copied to a second frame
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/local-var-06-structured-binding.C b/gcc/testsuite/g++.dg/coroutines/torture/local-var-06-structured-binding.C
index 282aa7a7cac..462ab51a755 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/local-var-06-structured-binding.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/local-var-06-structured-binding.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #include "../coro.h"
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/mid-suspend-destruction-0.C b/gcc/testsuite/g++.dg/coroutines/torture/mid-suspend-destruction-0.C
index 0cbf93ad8af..60852bb10a1 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/mid-suspend-destruction-0.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/mid-suspend-destruction-0.C
@@ -3,6 +3,7 @@
 // { dg-output "Destroyed coro1(\n|\r\n|\r)" }
 // { dg-output "Destroyed suspend_always_prt(\n|\r\n|\r)" }
 // { dg-output "Destroyed Promise(\n|\r\n|\r)" }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Check that we still get the right DTORs run when we let a suspended coro
 // go out of scope.
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/pr95003.C b/gcc/testsuite/g++.dg/coroutines/torture/pr95003.C
index 9022dd2b1ed..ada827e267d 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/pr95003.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/pr95003.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #include "../coro.h"
 #include "../coro1-ret-int-yield-int.h"
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-00-return_void.C b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-00-return_void.C
index 2952d011674..5d40ed414c4 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-00-return_void.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-00-return_void.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #include "../coro.h"
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-01-initial-suspend.C b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-01-initial-suspend.C
index 346c20dbd8f..deb5a2275dc 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-01-initial-suspend.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-01-initial-suspend.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #include "../coro.h"
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-02-final_suspend.C b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-02-final_suspend.C
index 4200c333ee3..f1793b17624 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-02-final_suspend.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-02-final_suspend.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #include "../coro.h"
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-03-return-value.C b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-03-return-value.C
index cf4c43d1a90..093d4f70b75 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-03-return-value.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-03-return-value.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #include "../coro.h"
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-04-yield-value.C b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-04-yield-value.C
index 5f1be4e00f4..910be6bdc7f 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-04-yield-value.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-04-yield-value.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #include "../coro.h"
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-05-gro.C b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-05-gro.C
index 2e7218371bc..28ecb32e463 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-05-gro.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-05-gro.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #include "../coro.h"
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-06-grooaf.C b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-06-grooaf.C
index b6b6bd73c9a..ebea8d3513b 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-06-grooaf.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-06-grooaf.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #include "../coro.h"
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-07-unhandled-exception.C b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-07-unhandled-exception.C
index be2a928ea00..3b9149ca17d 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/pr95519-07-unhandled-exception.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/pr95519-07-unhandled-exception.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #include "../coro.h"
 
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/pr95615-01.C b/gcc/testsuite/g++.dg/coroutines/torture/pr95615-01.C
index cf30c82be5e..baae030c97d 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/pr95615-01.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/pr95615-01.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cassert in pr95615.inc" { ! hostedlib } }
 
 #define INITIAL_SUSPEND_THROWS 1
 #include "pr95615.inc"
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/pr95615-02.C b/gcc/testsuite/g++.dg/coroutines/torture/pr95615-02.C
index 7ec0f33f485..504c8b99f8c 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/pr95615-02.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/pr95615-02.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cassert in pr95615.inc" { ! hostedlib } }
 
 #define PROMISE_CTOR_THROWS 1
 #include "pr95615.inc"
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/pr95615-03.C b/gcc/testsuite/g++.dg/coroutines/torture/pr95615-03.C
index 8053335428e..90b6395c793 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/pr95615-03.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/pr95615-03.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cassert in pr95615.inc" { ! hostedlib } }
 
 #define GET_RETURN_OBJECT_THROWS 1
 #include "pr95615.inc"
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/pr95615-04.C b/gcc/testsuite/g++.dg/coroutines/torture/pr95615-04.C
index db5c1285f9a..1b7f89f815d 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/pr95615-04.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/pr95615-04.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cassert in pr95615.inc" { ! hostedlib } }
 
 #define INITIAL_AWAIT_READY_THROWS 1
 #include "pr95615.inc"
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/pr95615-05.C b/gcc/testsuite/g++.dg/coroutines/torture/pr95615-05.C
index 5fd62f67be4..1d302c88226 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/pr95615-05.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/pr95615-05.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for cassert in pr95615.inc" { ! hostedlib } }
 
 #define INITIAL_AWAIT_SUSPEND_THROWS 1
 #include "pr95615.inc"
diff --git a/gcc/testsuite/g++.dg/coroutines/torture/pr98704.C b/gcc/testsuite/g++.dg/coroutines/torture/pr98704.C
index 15db250b4a2..fc914c63ced 100644
--- a/gcc/testsuite/g++.dg/coroutines/torture/pr98704.C
+++ b/gcc/testsuite/g++.dg/coroutines/torture/pr98704.C
@@ -1,4 +1,5 @@
 //  { dg-do run }
+//  { dg-skip-if "requires hosted libstdc++ for stdexcept" { ! hostedlib } }
 #include "../coro.h"
 
 #include <stdexcept>
diff --git a/gcc/testsuite/g++.dg/cpp0x/Wliteral-suffix.C b/gcc/testsuite/g++.dg/cpp0x/Wliteral-suffix.C
index b9b975b5dc2..bfa3c9e542f 100644
--- a/gcc/testsuite/g++.dg/cpp0x/Wliteral-suffix.C
+++ b/gcc/testsuite/g++.dg/cpp0x/Wliteral-suffix.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 // Make sure -Wliteral-suffix is enabled by default and
 // triggers as expected.
diff --git a/gcc/testsuite/g++.dg/cpp0x/Wpessimizing-move2.C b/gcc/testsuite/g++.dg/cpp0x/Wpessimizing-move2.C
index 0ee6e0535dc..bec6c7ba4c7 100644
--- a/gcc/testsuite/g++.dg/cpp0x/Wpessimizing-move2.C
+++ b/gcc/testsuite/g++.dg/cpp0x/Wpessimizing-move2.C
@@ -1,6 +1,7 @@
 // PR c++/86981
 // { dg-do compile { target c++11 } }
 // { dg-options "-Wpessimizing-move" }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <string>
 #include <tuple>
diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-70001-3.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-70001-3.C
index 12c4c453e1a..53287b173e8 100644
--- a/gcc/testsuite/g++.dg/cpp0x/constexpr-70001-3.C
+++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-70001-3.C
@@ -2,6 +2,7 @@
 
 // This is still slow to compile, only run it once.
 // { dg-do compile { target c++14_only } }
+// { dg-skip-if "requires hosted libstdc++ for complex" { ! hostedlib } }
 
 #include <array>
 #include <complex>
diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-ice16.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-ice16.C
index 112415b655b..fd55e08ce5a 100644
--- a/gcc/testsuite/g++.dg/cpp0x/constexpr-ice16.C
+++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-ice16.C
@@ -1,5 +1,6 @@
 // PR c++/66635
 // { dg-do compile { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/dc5.C b/gcc/testsuite/g++.dg/cpp0x/dc5.C
index 57321626e91..e4bdfd1a3a2 100644
--- a/gcc/testsuite/g++.dg/cpp0x/dc5.C
+++ b/gcc/testsuite/g++.dg/cpp0x/dc5.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/enum35.C b/gcc/testsuite/g++.dg/cpp0x/enum35.C
index bcc1b26b390..126fc7f1b02 100644
--- a/gcc/testsuite/g++.dg/cpp0x/enum35.C
+++ b/gcc/testsuite/g++.dg/cpp0x/enum35.C
@@ -1,5 +1,6 @@
 // PR c++/82307
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/enum36.C b/gcc/testsuite/g++.dg/cpp0x/enum36.C
index 4859670309f..e326942d9eb 100644
--- a/gcc/testsuite/g++.dg/cpp0x/enum36.C
+++ b/gcc/testsuite/g++.dg/cpp0x/enum36.C
@@ -1,5 +1,6 @@
 // PR c++/82307
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist-opt1.C b/gcc/testsuite/g++.dg/cpp0x/initlist-opt1.C
index 56de4bc0092..391b7c47d50 100644
--- a/gcc/testsuite/g++.dg/cpp0x/initlist-opt1.C
+++ b/gcc/testsuite/g++.dg/cpp0x/initlist-opt1.C
@@ -1,5 +1,6 @@
 // PR c++/110102
 // { dg-do compile { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for list" { ! hostedlib } }
 
 // { dg-error "deleted|construct_at" "" { target *-*-* } 0 }
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist-vect2.C b/gcc/testsuite/g++.dg/cpp0x/initlist-vect2.C
index eec7d340fd1..eba0e171cd6 100644
--- a/gcc/testsuite/g++.dg/cpp0x/initlist-vect2.C
+++ b/gcc/testsuite/g++.dg/cpp0x/initlist-vect2.C
@@ -1,5 +1,6 @@
 // PR c++/108195
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 #include <vector>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist13.C b/gcc/testsuite/g++.dg/cpp0x/initlist13.C
index bba226798ea..2da89dcef79 100644
--- a/gcc/testsuite/g++.dg/cpp0x/initlist13.C
+++ b/gcc/testsuite/g++.dg/cpp0x/initlist13.C
@@ -1,5 +1,6 @@
 // PR c++/39056
 // { dg-do compile { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for complex" { ! hostedlib } }
 
 #include <complex>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist15.C b/gcc/testsuite/g++.dg/cpp0x/initlist15.C
index acd04956b1b..aaa01fb7035 100644
--- a/gcc/testsuite/g++.dg/cpp0x/initlist15.C
+++ b/gcc/testsuite/g++.dg/cpp0x/initlist15.C
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 // Just discard errors pointing at header files
 // { dg-prune-output "include" }
diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist25.C b/gcc/testsuite/g++.dg/cpp0x/initlist25.C
index dd41db1f641..0e110c5c2cf 100644
--- a/gcc/testsuite/g++.dg/cpp0x/initlist25.C
+++ b/gcc/testsuite/g++.dg/cpp0x/initlist25.C
@@ -1,5 +1,6 @@
 // PR c++/41754
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for map" { ! hostedlib } }
 
 #include <map>
 #include <string>
diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist54.C b/gcc/testsuite/g++.dg/cpp0x/initlist54.C
index 52a8ff94d99..b9dcd391f89 100644
--- a/gcc/testsuite/g++.dg/cpp0x/initlist54.C
+++ b/gcc/testsuite/g++.dg/cpp0x/initlist54.C
@@ -1,5 +1,6 @@
 // PR c++/49355
 // { dg-do compile { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <string>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist92.C b/gcc/testsuite/g++.dg/cpp0x/initlist92.C
index 213b192d441..85079123ccd 100644
--- a/gcc/testsuite/g++.dg/cpp0x/initlist92.C
+++ b/gcc/testsuite/g++.dg/cpp0x/initlist92.C
@@ -1,5 +1,6 @@
 // PR c++/64665, DR 1467 
 // { dg-do compile { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <string>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-capture-const-ref-neg.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-capture-const-ref-neg.C
index 9c9632cd516..9f7c7a860e8 100644
--- a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-capture-const-ref-neg.C
+++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-capture-const-ref-neg.C
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 int main() {
diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-capture-const-ref.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-capture-const-ref.C
index 16fd0a713a7..3668a77c114 100644
--- a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-capture-const-ref.C
+++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-capture-const-ref.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 int main() {
diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const-neg.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const-neg.C
index 28ea53363a5..e1c3dac26b6 100644
--- a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const-neg.C
+++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const-neg.C
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const.C
index c6150f17456..9c639bf2ba1 100644
--- a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const.C
+++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-deduce.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-deduce.C
index b0e2d9fbabe..26e681626e9 100644
--- a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-deduce.C
+++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-deduce.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 int main() {
diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-in-class-neg.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-in-class-neg.C
index cff3d375682..40170899aed 100644
--- a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-in-class-neg.C
+++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-in-class-neg.C
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-in-class.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-in-class.C
index f2b54e58ad3..bfa04c41bdb 100644
--- a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-in-class.C
+++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-in-class.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mixed.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mixed.C
index d3f434195ea..e934e33582d 100644
--- a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mixed.C
+++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mixed.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 int main() {
diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mutable.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mutable.C
index 2c6b0f20644..2471adc6efb 100644
--- a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mutable.C
+++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mutable.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 int main() {
diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested.C
index 3848938d55f..a0f1a475444 100644
--- a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested.C
+++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-non-const.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-non-const.C
index b5a335eaf13..66d8218cea3 100644
--- a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-non-const.C
+++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-non-const.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nop.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nop.C
index 4a04cfbfb58..c64e1800c3b 100644
--- a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nop.C
+++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nop.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 int main() {
diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nullptr.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nullptr.C
index 1aadbb490dc..b88b0eb6917 100644
--- a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nullptr.C
+++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nullptr.C
@@ -1,5 +1,6 @@
 // PR c++/54170
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert> 
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-pass.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-pass.C
index d904ebee16b..5747766e8a3 100644
--- a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-pass.C
+++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-pass.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 #include <algorithm>
diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-recursive.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-recursive.C
index cbaeb16201f..f4b1c8ee9c0 100644
--- a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-recursive.C
+++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-recursive.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 //#include <iostream>
 #include <functional>
diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ref-default.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ref-default.C
index 6b86369dbf2..f0cc3c6b0bb 100644
--- a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ref-default.C
+++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ref-default.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ref.C b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ref.C
index def13fdd67b..dbeaf2ca772 100644
--- a/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ref.C
+++ b/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ref.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/nullptr20.C b/gcc/testsuite/g++.dg/cpp0x/nullptr20.C
index bbd0c7e24e3..985f50221d2 100644
--- a/gcc/testsuite/g++.dg/cpp0x/nullptr20.C
+++ b/gcc/testsuite/g++.dg/cpp0x/nullptr20.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 
 // Test passing to ellipisis
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr61038.C b/gcc/testsuite/g++.dg/cpp0x/pr61038.C
index 6c7a47bae73..96aabe554b8 100644
--- a/gcc/testsuite/g++.dg/cpp0x/pr61038.C
+++ b/gcc/testsuite/g++.dg/cpp0x/pr61038.C
@@ -1,5 +1,6 @@
 // PR c++/61038
 // { dg-do compile { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cstring" { ! hostedlib } }
 
 #include <cstring>
 #include <cstdlib>
diff --git a/gcc/testsuite/g++.dg/cpp0x/rv-trivial-bug.C b/gcc/testsuite/g++.dg/cpp0x/rv-trivial-bug.C
index 09732d17cdd..c06a3e6078d 100644
--- a/gcc/testsuite/g++.dg/cpp0x/rv-trivial-bug.C
+++ b/gcc/testsuite/g++.dg/cpp0x/rv-trivial-bug.C
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 // PR c++/33235
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/udlit-concat-neg.C b/gcc/testsuite/g++.dg/cpp0x/udlit-concat-neg.C
index 3093a7c055d..95d49271b81 100644
--- a/gcc/testsuite/g++.dg/cpp0x/udlit-concat-neg.C
+++ b/gcc/testsuite/g++.dg/cpp0x/udlit-concat-neg.C
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <string>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/udlit-concat.C b/gcc/testsuite/g++.dg/cpp0x/udlit-concat.C
index d4f10c2973f..208aaeea55d 100644
--- a/gcc/testsuite/g++.dg/cpp0x/udlit-concat.C
+++ b/gcc/testsuite/g++.dg/cpp0x/udlit-concat.C
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <string>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/udlit-embed-quote.C b/gcc/testsuite/g++.dg/cpp0x/udlit-embed-quote.C
index fef1a5342c9..27f7c990a12 100644
--- a/gcc/testsuite/g++.dg/cpp0x/udlit-embed-quote.C
+++ b/gcc/testsuite/g++.dg/cpp0x/udlit-embed-quote.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 //  Make sure embedded quotes are not a problem for string and char literals.
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/udlit-general.C b/gcc/testsuite/g++.dg/cpp0x/udlit-general.C
index d69db561b4e..28732d86212 100644
--- a/gcc/testsuite/g++.dg/cpp0x/udlit-general.C
+++ b/gcc/testsuite/g++.dg/cpp0x/udlit-general.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cstring" { ! hostedlib } }
 
 // Test user-defined literals.
 // Test simple operator declaration and definition.
diff --git a/gcc/testsuite/g++.dg/cpp0x/udlit-namespace.C b/gcc/testsuite/g++.dg/cpp0x/udlit-namespace.C
index 73298900b42..a2e4e414319 100644
--- a/gcc/testsuite/g++.dg/cpp0x/udlit-namespace.C
+++ b/gcc/testsuite/g++.dg/cpp0x/udlit-namespace.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cmath" { ! hostedlib } }
 
 // Test user-defined literals.
 // Test simple operator declaration and definition in namespaces.
diff --git a/gcc/testsuite/g++.dg/cpp0x/udlit-raw-op.C b/gcc/testsuite/g++.dg/cpp0x/udlit-raw-op.C
index c3259ed9b43..9f57ac56596 100644
--- a/gcc/testsuite/g++.dg/cpp0x/udlit-raw-op.C
+++ b/gcc/testsuite/g++.dg/cpp0x/udlit-raw-op.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 #include <cstring>
diff --git a/gcc/testsuite/g++.dg/cpp0x/udlit-raw-str.C b/gcc/testsuite/g++.dg/cpp0x/udlit-raw-str.C
index 7ca37b2a7f9..1991de1150f 100644
--- a/gcc/testsuite/g++.dg/cpp0x/udlit-raw-str.C
+++ b/gcc/testsuite/g++.dg/cpp0x/udlit-raw-str.C
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <string>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/udlit-resolve-char8_t.C b/gcc/testsuite/g++.dg/cpp0x/udlit-resolve-char8_t.C
index 19cbd519a86..5a264c24833 100644
--- a/gcc/testsuite/g++.dg/cpp0x/udlit-resolve-char8_t.C
+++ b/gcc/testsuite/g++.dg/cpp0x/udlit-resolve-char8_t.C
@@ -1,4 +1,5 @@
 // { dg-options "-std=c++17 -fchar8_t" }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cstdint>
 #include <cassert>
diff --git a/gcc/testsuite/g++.dg/cpp0x/udlit-resolve.C b/gcc/testsuite/g++.dg/cpp0x/udlit-resolve.C
index c1ceef7577f..c311cfb8db7 100644
--- a/gcc/testsuite/g++.dg/cpp0x/udlit-resolve.C
+++ b/gcc/testsuite/g++.dg/cpp0x/udlit-resolve.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cstdint>
 #include <cassert>
diff --git a/gcc/testsuite/g++.dg/cpp0x/udlit-sfinae.C b/gcc/testsuite/g++.dg/cpp0x/udlit-sfinae.C
index e24b79d9f0b..e69dd5a4255 100644
--- a/gcc/testsuite/g++.dg/cpp0x/udlit-sfinae.C
+++ b/gcc/testsuite/g++.dg/cpp0x/udlit-sfinae.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/udlit-string-literal.C b/gcc/testsuite/g++.dg/cpp0x/udlit-string-literal.C
index ab65dd08714..78e2b26d3bb 100644
--- a/gcc/testsuite/g++.dg/cpp0x/udlit-string-literal.C
+++ b/gcc/testsuite/g++.dg/cpp0x/udlit-string-literal.C
@@ -1,5 +1,6 @@
 // { dg-do compile { target c++11 } }
 // { dg-require-effective-target stdint_types }
+// { dg-skip-if "requires hosted libstdc++ for string in udlit-string-literal.h" { ! hostedlib } }
 // PR c++/55582
 
 #include "udlit-string-literal.h"
diff --git a/gcc/testsuite/g++.dg/cpp0x/udlit-suffix-neg.C b/gcc/testsuite/g++.dg/cpp0x/udlit-suffix-neg.C
index 7283fed9a35..8f3cc87825a 100644
--- a/gcc/testsuite/g++.dg/cpp0x/udlit-suffix-neg.C
+++ b/gcc/testsuite/g++.dg/cpp0x/udlit-suffix-neg.C
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <string>
 
diff --git a/gcc/testsuite/g++.dg/cpp0x/udlit-template.C b/gcc/testsuite/g++.dg/cpp0x/udlit-template.C
index 15583199297..b5306b9962f 100644
--- a/gcc/testsuite/g++.dg/cpp0x/udlit-template.C
+++ b/gcc/testsuite/g++.dg/cpp0x/udlit-template.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 // Test user-defined literals.
 // Test template operator declaration and definition.
diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic-bind.C b/gcc/testsuite/g++.dg/cpp0x/variadic-bind.C
index 74e01ec364c..dd3b390ca63 100644
--- a/gcc/testsuite/g++.dg/cpp0x/variadic-bind.C
+++ b/gcc/testsuite/g++.dg/cpp0x/variadic-bind.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 // A basic implementation of TR1's bind using variadic teplates
 // Contributed by Douglas Gregor <doug.gregor@gmail.com>
 #include <cassert>
diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic-function.C b/gcc/testsuite/g++.dg/cpp0x/variadic-function.C
index bb98531c387..1a5103ae36a 100644
--- a/gcc/testsuite/g++.dg/cpp0x/variadic-function.C
+++ b/gcc/testsuite/g++.dg/cpp0x/variadic-function.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 // A basic implementation of TR1's function using variadic teplates
 // Contributed by Douglas Gregor <doug.gregor@gmail.com>
 #include <cassert>
diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic-mem_fn.C b/gcc/testsuite/g++.dg/cpp0x/variadic-mem_fn.C
index aca58e39461..7a707100613 100644
--- a/gcc/testsuite/g++.dg/cpp0x/variadic-mem_fn.C
+++ b/gcc/testsuite/g++.dg/cpp0x/variadic-mem_fn.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 // A basic implementation of TR1's mem_fn using variadic teplates
 // Contributed by Douglas Gregor <doug.gregor@gmail.com>
 #include <cassert>
diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic-tuple.C b/gcc/testsuite/g++.dg/cpp0x/variadic-tuple.C
index 5164598439b..651618e3fd1 100644
--- a/gcc/testsuite/g++.dg/cpp0x/variadic-tuple.C
+++ b/gcc/testsuite/g++.dg/cpp0x/variadic-tuple.C
@@ -1,5 +1,6 @@
 // { dg-do run { target c++11 } }
 // { dg-additional-options "-fexcess-precision=fast" }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 // An implementation of TR1's <tuple> using variadic teplates
 // Contributed by Douglas Gregor <doug.gregor@gmail.com>
 
diff --git a/gcc/testsuite/g++.dg/cpp1y/auto-fn45.C b/gcc/testsuite/g++.dg/cpp1y/auto-fn45.C
index a9c163dd736..203f80762b9 100644
--- a/gcc/testsuite/g++.dg/cpp1y/auto-fn45.C
+++ b/gcc/testsuite/g++.dg/cpp1y/auto-fn45.C
@@ -1,5 +1,6 @@
 // PR c++/69057
 // { dg-do compile { target c++14 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp1y/complex_literals1.C b/gcc/testsuite/g++.dg/cpp1y/complex_literals1.C
index 5ae2370c3ff..3cedd0d401f 100644
--- a/gcc/testsuite/g++.dg/cpp1y/complex_literals1.C
+++ b/gcc/testsuite/g++.dg/cpp1y/complex_literals1.C
@@ -1,5 +1,6 @@
 // PR c++/79228
 // { dg-do compile { target c++14 } }
+// { dg-skip-if "requires hosted libstdc++ for complex" { ! hostedlib } }
 
 #include <complex>
 
diff --git a/gcc/testsuite/g++.dg/cpp1y/complex_literals1a.C b/gcc/testsuite/g++.dg/cpp1y/complex_literals1a.C
index 9b61f3aa534..a5d1e010f8d 100644
--- a/gcc/testsuite/g++.dg/cpp1y/complex_literals1a.C
+++ b/gcc/testsuite/g++.dg/cpp1y/complex_literals1a.C
@@ -1,6 +1,7 @@
 // PR c++/79228
 // { dg-do compile { target c++14 } }
 // { dg-options "" }
+// { dg-skip-if "requires hosted libstdc++ for complex" { ! hostedlib } }
 
 #include <complex>
 
diff --git a/gcc/testsuite/g++.dg/cpp1y/constexpr-66093.C b/gcc/testsuite/g++.dg/cpp1y/constexpr-66093.C
index 3d742cfebd8..b463c900081 100644
--- a/gcc/testsuite/g++.dg/cpp1y/constexpr-66093.C
+++ b/gcc/testsuite/g++.dg/cpp1y/constexpr-66093.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++14 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp1y/constexpr-assert1.C b/gcc/testsuite/g++.dg/cpp1y/constexpr-assert1.C
index df2a31539ff..66acfcc6db0 100644
--- a/gcc/testsuite/g++.dg/cpp1y/constexpr-assert1.C
+++ b/gcc/testsuite/g++.dg/cpp1y/constexpr-assert1.C
@@ -1,5 +1,6 @@
 // PR c++/59329
 // { dg-do compile { target c++14 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp1y/constexpr-assert2.C b/gcc/testsuite/g++.dg/cpp1y/constexpr-assert2.C
index a3291017324..def05f5fb25 100644
--- a/gcc/testsuite/g++.dg/cpp1y/constexpr-assert2.C
+++ b/gcc/testsuite/g++.dg/cpp1y/constexpr-assert2.C
@@ -1,5 +1,6 @@
 // PR c++/65985
 // { dg-do compile { target c++14 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp1y/lambda-generic-69078-2.C b/gcc/testsuite/g++.dg/cpp1y/lambda-generic-69078-2.C
index 318e0967250..e73b86e4eb2 100644
--- a/gcc/testsuite/g++.dg/cpp1y/lambda-generic-69078-2.C
+++ b/gcc/testsuite/g++.dg/cpp1y/lambda-generic-69078-2.C
@@ -1,5 +1,6 @@
 // PR c++/69078
 // { dg-do run { target c++14 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp1y/lambda-generic-x.C b/gcc/testsuite/g++.dg/cpp1y/lambda-generic-x.C
index 0926a5e363b..723512f71f5 100644
--- a/gcc/testsuite/g++.dg/cpp1y/lambda-generic-x.C
+++ b/gcc/testsuite/g++.dg/cpp1y/lambda-generic-x.C
@@ -1,6 +1,7 @@
 // Explicit generic lambda test from N3690 5.1.2.5
 // { dg-do compile { target c++14 } }
 // { dg-options "-Wpedantic" }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 
 #include <iostream>
 
diff --git a/gcc/testsuite/g++.dg/cpp1y/lambda-init8.C b/gcc/testsuite/g++.dg/cpp1y/lambda-init8.C
index 21933bd3e1b..7ccb01e3d4f 100644
--- a/gcc/testsuite/g++.dg/cpp1y/lambda-init8.C
+++ b/gcc/testsuite/g++.dg/cpp1y/lambda-init8.C
@@ -1,5 +1,6 @@
 // DR1760: "no additional copy and destruction is performed"
 // { dg-do run { target c++14 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp1y/new2.C b/gcc/testsuite/g++.dg/cpp1y/new2.C
index cdcbd7daf2b..3fecda75e55 100644
--- a/gcc/testsuite/g++.dg/cpp1y/new2.C
+++ b/gcc/testsuite/g++.dg/cpp1y/new2.C
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -std=c++17 -fdump-tree-cddce-details -fdelete-null-pointer-checks" } */
+/* { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } } */
 
 #include <cstdio>
 #include <cstdlib>
diff --git a/gcc/testsuite/g++.dg/cpp1y/nsdmi-aggr12.C b/gcc/testsuite/g++.dg/cpp1y/nsdmi-aggr12.C
index fcc1f50dd81..92a82fd322b 100644
--- a/gcc/testsuite/g++.dg/cpp1y/nsdmi-aggr12.C
+++ b/gcc/testsuite/g++.dg/cpp1y/nsdmi-aggr12.C
@@ -1,5 +1,6 @@
 // PR c++/90926
 // { dg-do run { target c++14 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp1y/pr57640.C b/gcc/testsuite/g++.dg/cpp1y/pr57640.C
index 0c76a08aecc..6a79ea239d6 100644
--- a/gcc/testsuite/g++.dg/cpp1y/pr57640.C
+++ b/gcc/testsuite/g++.dg/cpp1y/pr57640.C
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++14 } }
+// { dg-skip-if "requires hosted libstdc++ for chrono" { ! hostedlib } }
 
 #include <chrono>
 
diff --git a/gcc/testsuite/g++.dg/cpp1y/pr77786.C b/gcc/testsuite/g++.dg/cpp1y/pr77786.C
index e242228335c..c1e2be70840 100644
--- a/gcc/testsuite/g++.dg/cpp1y/pr77786.C
+++ b/gcc/testsuite/g++.dg/cpp1y/pr77786.C
@@ -1,5 +1,6 @@
 // PR c++/77786
 // { dg-do compile { target c++14 } }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 #include <vector>
 
diff --git a/gcc/testsuite/g++.dg/cpp1y/pr95226.C b/gcc/testsuite/g++.dg/cpp1y/pr95226.C
index 614c83c8cda..0808bd6a231 100644
--- a/gcc/testsuite/g++.dg/cpp1y/pr95226.C
+++ b/gcc/testsuite/g++.dg/cpp1y/pr95226.C
@@ -1,5 +1,6 @@
 // PR c++/95226
 // { dg-do run { target c++14 } }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 #include <vector>
 
diff --git a/gcc/testsuite/g++.dg/cpp1y/udlit-char-template-sfinae.C b/gcc/testsuite/g++.dg/cpp1y/udlit-char-template-sfinae.C
index b523858e9c0..f1cd1cc8b46 100644
--- a/gcc/testsuite/g++.dg/cpp1y/udlit-char-template-sfinae.C
+++ b/gcc/testsuite/g++.dg/cpp1y/udlit-char-template-sfinae.C
@@ -1,5 +1,6 @@
 // { dg-do run { target c++14 } }
 // { dg-options -w }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp1y/udlit-char-template-vs-std-literal-operator.C b/gcc/testsuite/g++.dg/cpp1y/udlit-char-template-vs-std-literal-operator.C
index c5a67c96cf6..babef5a25ec 100644
--- a/gcc/testsuite/g++.dg/cpp1y/udlit-char-template-vs-std-literal-operator.C
+++ b/gcc/testsuite/g++.dg/cpp1y/udlit-char-template-vs-std-literal-operator.C
@@ -1,5 +1,6 @@
 // { dg-do run { target c++14 } }
 // { dg-options -w }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp1y/udlit-userdef-string.C b/gcc/testsuite/g++.dg/cpp1y/udlit-userdef-string.C
index cad4a1dfc66..c75e0169bea 100644
--- a/gcc/testsuite/g++.dg/cpp1y/udlit-userdef-string.C
+++ b/gcc/testsuite/g++.dg/cpp1y/udlit-userdef-string.C
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++14 } }
+// { dg-skip-if "requires hosted libstdc++ for complex in complex_literals.h" { ! hostedlib } }
 
 #include "complex_literals.h"
 
diff --git a/gcc/testsuite/g++.dg/cpp1z/class-deduction14.C b/gcc/testsuite/g++.dg/cpp1z/class-deduction14.C
index ba2ba9bd1ec..69bcd8f670e 100644
--- a/gcc/testsuite/g++.dg/cpp1z/class-deduction14.C
+++ b/gcc/testsuite/g++.dg/cpp1z/class-deduction14.C
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++17 } }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 #include <vector>
 
diff --git a/gcc/testsuite/g++.dg/cpp1z/decomp37.C b/gcc/testsuite/g++.dg/cpp1z/decomp37.C
index 6bf81769b7e..6e0e8b561c9 100644
--- a/gcc/testsuite/g++.dg/cpp1z/decomp37.C
+++ b/gcc/testsuite/g++.dg/cpp1z/decomp37.C
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++17 } }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <memory>
 #include <tuple>
diff --git a/gcc/testsuite/g++.dg/cpp1z/eval-order2.C b/gcc/testsuite/g++.dg/cpp1z/eval-order2.C
index af26cb20744..1be2af75ef5 100644
--- a/gcc/testsuite/g++.dg/cpp1z/eval-order2.C
+++ b/gcc/testsuite/g++.dg/cpp1z/eval-order2.C
@@ -1,5 +1,6 @@
 // P0145R2: Refining Expression Order for C++
 // { dg-do run { target c++17 } }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <string>
 #define assert(X) if (!(X)) __builtin_abort();
diff --git a/gcc/testsuite/g++.dg/cpp1z/fold1.C b/gcc/testsuite/g++.dg/cpp1z/fold1.C
index 6d004676707..ee5f4840143 100644
--- a/gcc/testsuite/g++.dg/cpp1z/fold1.C
+++ b/gcc/testsuite/g++.dg/cpp1z/fold1.C
@@ -1,5 +1,6 @@
 // { dg-do run { target c++17 } }
 // { dg-options "" }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp1z/init-statement6.C b/gcc/testsuite/g++.dg/cpp1z/init-statement6.C
index e1848aa5e4a..95a4bea085b 100644
--- a/gcc/testsuite/g++.dg/cpp1z/init-statement6.C
+++ b/gcc/testsuite/g++.dg/cpp1z/init-statement6.C
@@ -1,5 +1,6 @@
 // Testcase from P0305R1
 // { dg-do compile { target c++17 } }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <string>
 #include <map>
diff --git a/gcc/testsuite/g++.dg/cpp1z/launder3.C b/gcc/testsuite/g++.dg/cpp1z/launder3.C
index 2a2afc5cad1..90954003589 100644
--- a/gcc/testsuite/g++.dg/cpp1z/launder3.C
+++ b/gcc/testsuite/g++.dg/cpp1z/launder3.C
@@ -1,5 +1,6 @@
 // { dg-do run { target c++11 } }
 // { dg-additional-options "-O2" }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp1z/launder4.C b/gcc/testsuite/g++.dg/cpp1z/launder4.C
index 3a65eb27f2e..d9698f8c182 100644
--- a/gcc/testsuite/g++.dg/cpp1z/launder4.C
+++ b/gcc/testsuite/g++.dg/cpp1z/launder4.C
@@ -1,5 +1,6 @@
 // { dg-do run { target c++11 } }
 // { dg-additional-options "-O2" }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp1z/launder5.C b/gcc/testsuite/g++.dg/cpp1z/launder5.C
index 483d6f29297..5bc97f63aff 100644
--- a/gcc/testsuite/g++.dg/cpp1z/launder5.C
+++ b/gcc/testsuite/g++.dg/cpp1z/launder5.C
@@ -1,6 +1,7 @@
 // { dg-do run { target c++11 } }
 // { dg-additional-options "-O2" }
 // { dg-additional-sources "launder5.cc" }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 #include "launder5.h"
diff --git a/gcc/testsuite/g++.dg/cpp1z/launder6.C b/gcc/testsuite/g++.dg/cpp1z/launder6.C
index babc4b433ad..e92b02cd5e2 100644
--- a/gcc/testsuite/g++.dg/cpp1z/launder6.C
+++ b/gcc/testsuite/g++.dg/cpp1z/launder6.C
@@ -1,6 +1,7 @@
 // { dg-do run { target c++11 } }
 // { dg-additional-options "-O2" }
 // { dg-additional-sources "launder6.cc" }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 #include "launder6.h"
 
diff --git a/gcc/testsuite/g++.dg/cpp1z/utf8.C b/gcc/testsuite/g++.dg/cpp1z/utf8.C
index ed413f30976..1d496a10370 100644
--- a/gcc/testsuite/g++.dg/cpp1z/utf8.C
+++ b/gcc/testsuite/g++.dg/cpp1z/utf8.C
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++17 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 #include <experimental/type_traits>
diff --git a/gcc/testsuite/g++.dg/cpp23/subscript5.C b/gcc/testsuite/g++.dg/cpp23/subscript5.C
index b36bc774ec4..eac6a245728 100644
--- a/gcc/testsuite/g++.dg/cpp23/subscript5.C
+++ b/gcc/testsuite/g++.dg/cpp23/subscript5.C
@@ -1,5 +1,6 @@
 // P2128R6
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #include <initializer_list>
 #include <cstdlib>
diff --git a/gcc/testsuite/g++.dg/cpp23/subscript6.C b/gcc/testsuite/g++.dg/cpp23/subscript6.C
index 72c7aef42af..df4a6f92166 100644
--- a/gcc/testsuite/g++.dg/cpp23/subscript6.C
+++ b/gcc/testsuite/g++.dg/cpp23/subscript6.C
@@ -1,6 +1,7 @@
 // P2128R6
 // { dg-do run }
 // { dg-options "-std=c++23" }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #include <initializer_list>
 #include <cstdlib>
diff --git a/gcc/testsuite/g++.dg/cpp2a/concepts-cmath.C b/gcc/testsuite/g++.dg/cpp2a/concepts-cmath.C
index d13100b96f9..7864935cfc0 100644
--- a/gcc/testsuite/g++.dg/cpp2a/concepts-cmath.C
+++ b/gcc/testsuite/g++.dg/cpp2a/concepts-cmath.C
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++20 } }
+// { dg-skip-if "requires hosted libstdc++ for cmath" { ! hostedlib } }
 
 #include <cmath>
 
diff --git a/gcc/testsuite/g++.dg/cpp2a/concepts-explicit-spec1.C b/gcc/testsuite/g++.dg/cpp2a/concepts-explicit-spec1.C
index 2fe479934a8..e48d640a167 100644
--- a/gcc/testsuite/g++.dg/cpp2a/concepts-explicit-spec1.C
+++ b/gcc/testsuite/g++.dg/cpp2a/concepts-explicit-spec1.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++20 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp2a/concepts-explicit-spec4.C b/gcc/testsuite/g++.dg/cpp2a/concepts-explicit-spec4.C
index 471eaba773f..94cebb9cd2a 100644
--- a/gcc/testsuite/g++.dg/cpp2a/concepts-explicit-spec4.C
+++ b/gcc/testsuite/g++.dg/cpp2a/concepts-explicit-spec4.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++20 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp2a/concepts-explicit-spec5.C b/gcc/testsuite/g++.dg/cpp2a/concepts-explicit-spec5.C
index a15749a88be..3cb525ec25c 100644
--- a/gcc/testsuite/g++.dg/cpp2a/concepts-explicit-spec5.C
+++ b/gcc/testsuite/g++.dg/cpp2a/concepts-explicit-spec5.C
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++20 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp2a/concepts-memfun.C b/gcc/testsuite/g++.dg/cpp2a/concepts-memfun.C
index 77e10c6b5c7..865ca374311 100644
--- a/gcc/testsuite/g++.dg/cpp2a/concepts-memfun.C
+++ b/gcc/testsuite/g++.dg/cpp2a/concepts-memfun.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++20 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/cpp2a/concepts-pr67774.C b/gcc/testsuite/g++.dg/cpp2a/concepts-pr67774.C
index 5ee5c2dac8f..50e98fb831b 100644
--- a/gcc/testsuite/g++.dg/cpp2a/concepts-pr67774.C
+++ b/gcc/testsuite/g++.dg/cpp2a/concepts-pr67774.C
@@ -1,5 +1,6 @@
 // { dg-do compile { target c++20 } }
 // { dg-additional-options "-fconcepts-ts" }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 
 #include <type_traits>
 #include <utility>
diff --git a/gcc/testsuite/g++.dg/cpp2a/cond-triv2.C b/gcc/testsuite/g++.dg/cpp2a/cond-triv2.C
index 531ec1c4c72..835276b2815 100644
--- a/gcc/testsuite/g++.dg/cpp2a/cond-triv2.C
+++ b/gcc/testsuite/g++.dg/cpp2a/cond-triv2.C
@@ -1,5 +1,6 @@
 // PR c++/67348
 // { dg-do compile { target c++20 } }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 #include <type_traits>
 #include <vector>
diff --git a/gcc/testsuite/g++.dg/cpp2a/nontype-float1.C b/gcc/testsuite/g++.dg/cpp2a/nontype-float1.C
index 4fafac13793..4a816dacd0f 100644
--- a/gcc/testsuite/g++.dg/cpp2a/nontype-float1.C
+++ b/gcc/testsuite/g++.dg/cpp2a/nontype-float1.C
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++20 } }
+// { dg-skip-if "requires hosted libstdc++ for cmath" { ! hostedlib } }
 
 #include <cmath>
 
diff --git a/gcc/testsuite/g++.dg/diagnostic/disable.C b/gcc/testsuite/g++.dg/diagnostic/disable.C
index 7d86e073b26..c055c40bd49 100644
--- a/gcc/testsuite/g++.dg/diagnostic/disable.C
+++ b/gcc/testsuite/g++.dg/diagnostic/disable.C
@@ -1,4 +1,5 @@
 // { dg-options "-Wtemplates -Wmultiple-inheritance -Wvirtual-inheritance -Wnamespaces" }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 
 #include <iostream>
 #include <algorithm>
diff --git a/gcc/testsuite/g++.dg/diagnostic/pr65923.C b/gcc/testsuite/g++.dg/diagnostic/pr65923.C
index 036f4478181..85ac03e00c9 100644
--- a/gcc/testsuite/g++.dg/diagnostic/pr65923.C
+++ b/gcc/testsuite/g++.dg/diagnostic/pr65923.C
@@ -1,4 +1,5 @@
 // { dg-do compile { target c++14 } }
+// { dg-skip-if "requires hosted libstdc++ for chrono" { ! hostedlib } }
 
 #include <chrono>
 
diff --git a/gcc/testsuite/g++.dg/eh/arm-vfp-unwind.C b/gcc/testsuite/g++.dg/eh/arm-vfp-unwind.C
index 8ea25e57ca2..5cc5a8f7dc0 100644
--- a/gcc/testsuite/g++.dg/eh/arm-vfp-unwind.C
+++ b/gcc/testsuite/g++.dg/eh/arm-vfp-unwind.C
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-require-effective-target arm32 } */
+/* { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } } */
 
 /* Test to catch off-by-one errors in arm/pr-support.c.  */
 
diff --git a/gcc/testsuite/g++.dg/eh/crossjump1.C b/gcc/testsuite/g++.dg/eh/crossjump1.C
index ccb0ffb2185..dca2adbff52 100644
--- a/gcc/testsuite/g++.dg/eh/crossjump1.C
+++ b/gcc/testsuite/g++.dg/eh/crossjump1.C
@@ -3,6 +3,7 @@
 // and one without REG_EH_REGION note.
 // { dg-do run }
 // { dg-options "-O2" }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <exception>
 #include <string>
diff --git a/gcc/testsuite/g++.dg/eh/filter2.C b/gcc/testsuite/g++.dg/eh/filter2.C
index fe87cc9a308..e8f96cfd4e6 100644
--- a/gcc/testsuite/g++.dg/eh/filter2.C
+++ b/gcc/testsuite/g++.dg/eh/filter2.C
@@ -2,6 +2,7 @@
 // running destructors.  Original bug depended on a::~a being inlined.
 // { dg-do run }
 // { dg-options -O }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #include <exception>
 #include <cstdlib>
diff --git a/gcc/testsuite/g++.dg/eh/omit-frame-pointer.C b/gcc/testsuite/g++.dg/eh/omit-frame-pointer.C
index 3792e11fe4c..f563410ae05 100644
--- a/gcc/testsuite/g++.dg/eh/omit-frame-pointer.C
+++ b/gcc/testsuite/g++.dg/eh/omit-frame-pointer.C
@@ -1,5 +1,6 @@
 // { dg-do run }
 // { dg-options -fomit-frame-pointer }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 
 #include <iostream>
 
diff --git a/gcc/testsuite/g++.dg/eh/simd-3.C b/gcc/testsuite/g++.dg/eh/simd-3.C
index 5ac75c93220..8af385ce14b 100644
--- a/gcc/testsuite/g++.dg/eh/simd-3.C
+++ b/gcc/testsuite/g++.dg/eh/simd-3.C
@@ -1,6 +1,7 @@
 // { dg-options "-O" }
 // { dg-options "-O -maltivec" { target { powerpc*-*-darwin* && powerpc_altivec_ok } } }
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstring" { ! hostedlib } }
 
 #include <cstdlib>
 #include <cstring>
diff --git a/gcc/testsuite/g++.dg/eh/uncaught1.C b/gcc/testsuite/g++.dg/eh/uncaught1.C
index 4f05be59fd1..9a414b5732a 100644
--- a/gcc/testsuite/g++.dg/eh/uncaught1.C
+++ b/gcc/testsuite/g++.dg/eh/uncaught1.C
@@ -2,6 +2,7 @@
 // { dg-do run }
 // { dg-options "-Wno-deprecated" }
 // { dg-options "-fuse-cxa-get-exception-ptr -Wno-deprecated" { target powerpc*-*-darwin* } }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #include <exception>
 #include <cstdlib>
diff --git a/gcc/testsuite/g++.dg/eh/uncaught2.C b/gcc/testsuite/g++.dg/eh/uncaught2.C
index 62e4d4ded22..42fd664d91c 100644
--- a/gcc/testsuite/g++.dg/eh/uncaught2.C
+++ b/gcc/testsuite/g++.dg/eh/uncaught2.C
@@ -1,6 +1,7 @@
 // { dg-do compile }
 // { dg-final { scan-assembler-not "__cxa_get_exception" } }
 // { dg-options "-fno-use-cxa-get-exception-ptr -Wno-deprecated" }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #include <exception>
 #include <cstdlib>
diff --git a/gcc/testsuite/g++.dg/ext/bases.C b/gcc/testsuite/g++.dg/ext/bases.C
index 43f71925dcd..9de34c76c1e 100644
--- a/gcc/testsuite/g++.dg/ext/bases.C
+++ b/gcc/testsuite/g++.dg/ext/bases.C
@@ -1,5 +1,6 @@
 // { dg-options "-w" }
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include<typeinfo>
 #include<cassert>
diff --git a/gcc/testsuite/g++.dg/ext/builtin-line1.C b/gcc/testsuite/g++.dg/ext/builtin-line1.C
index 21a4f59a46f..4fd6e0c0144 100644
--- a/gcc/testsuite/g++.dg/ext/builtin-line1.C
+++ b/gcc/testsuite/g++.dg/ext/builtin-line1.C
@@ -1,5 +1,6 @@
 // __builtin_LINE gets the location where the default argument is expanded.
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 struct Foo
diff --git a/gcc/testsuite/g++.dg/ext/complex4.C b/gcc/testsuite/g++.dg/ext/complex4.C
index 78b9356702e..b53e289decf 100644
--- a/gcc/testsuite/g++.dg/ext/complex4.C
+++ b/gcc/testsuite/g++.dg/ext/complex4.C
@@ -1,4 +1,5 @@
 // { dg-do compile }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 // This code used to be rejected as there was no conversion from int to float __complex__
  #include <vector>
  typedef float __complex__ fcomplex;
diff --git a/gcc/testsuite/g++.dg/ext/has_nothrow_assign.C b/gcc/testsuite/g++.dg/ext/has_nothrow_assign.C
index 36b93d81183..c7d0d3a5bd0 100644
--- a/gcc/testsuite/g++.dg/ext/has_nothrow_assign.C
+++ b/gcc/testsuite/g++.dg/ext/has_nothrow_assign.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct A
diff --git a/gcc/testsuite/g++.dg/ext/has_nothrow_assign_odr.C b/gcc/testsuite/g++.dg/ext/has_nothrow_assign_odr.C
index 594d3a98672..59715ae87f2 100644
--- a/gcc/testsuite/g++.dg/ext/has_nothrow_assign_odr.C
+++ b/gcc/testsuite/g++.dg/ext/has_nothrow_assign_odr.C
@@ -1,5 +1,6 @@
 // PR c++/36870
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 
 #include <cassert>
diff --git a/gcc/testsuite/g++.dg/ext/has_nothrow_constructor.C b/gcc/testsuite/g++.dg/ext/has_nothrow_constructor.C
index 03304452f8c..a167877e641 100644
--- a/gcc/testsuite/g++.dg/ext/has_nothrow_constructor.C
+++ b/gcc/testsuite/g++.dg/ext/has_nothrow_constructor.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct A
diff --git a/gcc/testsuite/g++.dg/ext/has_nothrow_constructor_odr.C b/gcc/testsuite/g++.dg/ext/has_nothrow_constructor_odr.C
index 68ca111b09d..04cad04b291 100644
--- a/gcc/testsuite/g++.dg/ext/has_nothrow_constructor_odr.C
+++ b/gcc/testsuite/g++.dg/ext/has_nothrow_constructor_odr.C
@@ -1,5 +1,6 @@
 // PR c++/36870
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct S { S (); };
diff --git a/gcc/testsuite/g++.dg/ext/has_nothrow_copy-1.C b/gcc/testsuite/g++.dg/ext/has_nothrow_copy-1.C
index 04f681f602a..f4100817fce 100644
--- a/gcc/testsuite/g++.dg/ext/has_nothrow_copy-1.C
+++ b/gcc/testsuite/g++.dg/ext/has_nothrow_copy-1.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct A
diff --git a/gcc/testsuite/g++.dg/ext/has_nothrow_copy-2.C b/gcc/testsuite/g++.dg/ext/has_nothrow_copy-2.C
index 901d2110748..45f99e4fe4a 100644
--- a/gcc/testsuite/g++.dg/ext/has_nothrow_copy-2.C
+++ b/gcc/testsuite/g++.dg/ext/has_nothrow_copy-2.C
@@ -1,5 +1,6 @@
 // PR c++/36871
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct A {
diff --git a/gcc/testsuite/g++.dg/ext/has_nothrow_copy-3.C b/gcc/testsuite/g++.dg/ext/has_nothrow_copy-3.C
index 79700441093..fb652e6e99e 100644
--- a/gcc/testsuite/g++.dg/ext/has_nothrow_copy-3.C
+++ b/gcc/testsuite/g++.dg/ext/has_nothrow_copy-3.C
@@ -1,5 +1,6 @@
 // PR c++/36871
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct F {
diff --git a/gcc/testsuite/g++.dg/ext/has_nothrow_copy-4.C b/gcc/testsuite/g++.dg/ext/has_nothrow_copy-4.C
index 63e67331ec8..ca198ed5ea6 100644
--- a/gcc/testsuite/g++.dg/ext/has_nothrow_copy-4.C
+++ b/gcc/testsuite/g++.dg/ext/has_nothrow_copy-4.C
@@ -1,5 +1,6 @@
 // PR c++/36872
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct S {
diff --git a/gcc/testsuite/g++.dg/ext/has_nothrow_copy-5.C b/gcc/testsuite/g++.dg/ext/has_nothrow_copy-5.C
index e92801d61bf..58d63662720 100644
--- a/gcc/testsuite/g++.dg/ext/has_nothrow_copy-5.C
+++ b/gcc/testsuite/g++.dg/ext/has_nothrow_copy-5.C
@@ -1,5 +1,6 @@
 // PR c++/36872
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct S {
diff --git a/gcc/testsuite/g++.dg/ext/has_nothrow_copy-6.C b/gcc/testsuite/g++.dg/ext/has_nothrow_copy-6.C
index c4e0a5ce7ba..88255dc7888 100644
--- a/gcc/testsuite/g++.dg/ext/has_nothrow_copy-6.C
+++ b/gcc/testsuite/g++.dg/ext/has_nothrow_copy-6.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct S {
diff --git a/gcc/testsuite/g++.dg/ext/has_nothrow_copy-7.C b/gcc/testsuite/g++.dg/ext/has_nothrow_copy-7.C
index 076f8a31ff6..ee23aaaae49 100644
--- a/gcc/testsuite/g++.dg/ext/has_nothrow_copy-7.C
+++ b/gcc/testsuite/g++.dg/ext/has_nothrow_copy-7.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct S {
diff --git a/gcc/testsuite/g++.dg/ext/has_nothrow_copy_odr.C b/gcc/testsuite/g++.dg/ext/has_nothrow_copy_odr.C
index 573fd2f80c8..bf1ea0addaf 100644
--- a/gcc/testsuite/g++.dg/ext/has_nothrow_copy_odr.C
+++ b/gcc/testsuite/g++.dg/ext/has_nothrow_copy_odr.C
@@ -1,5 +1,6 @@
 // PR c++/36870
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct S { S (const S&); };
diff --git a/gcc/testsuite/g++.dg/ext/has_trivial_assign.C b/gcc/testsuite/g++.dg/ext/has_trivial_assign.C
index dce0f8b3a51..6a6a718a204 100644
--- a/gcc/testsuite/g++.dg/ext/has_trivial_assign.C
+++ b/gcc/testsuite/g++.dg/ext/has_trivial_assign.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct A
diff --git a/gcc/testsuite/g++.dg/ext/has_trivial_constructor.C b/gcc/testsuite/g++.dg/ext/has_trivial_constructor.C
index f4addd82446..021d2d72e1f 100644
--- a/gcc/testsuite/g++.dg/ext/has_trivial_constructor.C
+++ b/gcc/testsuite/g++.dg/ext/has_trivial_constructor.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct A
diff --git a/gcc/testsuite/g++.dg/ext/has_trivial_copy.C b/gcc/testsuite/g++.dg/ext/has_trivial_copy.C
index 4d2341b17e1..dd879f708f5 100644
--- a/gcc/testsuite/g++.dg/ext/has_trivial_copy.C
+++ b/gcc/testsuite/g++.dg/ext/has_trivial_copy.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct A
diff --git a/gcc/testsuite/g++.dg/ext/has_trivial_destructor-1.C b/gcc/testsuite/g++.dg/ext/has_trivial_destructor-1.C
index 2834c238d6e..4ae89e43e38 100644
--- a/gcc/testsuite/g++.dg/ext/has_trivial_destructor-1.C
+++ b/gcc/testsuite/g++.dg/ext/has_trivial_destructor-1.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct A
diff --git a/gcc/testsuite/g++.dg/ext/has_virtual_destructor.C b/gcc/testsuite/g++.dg/ext/has_virtual_destructor.C
index 62b60aebf59..5f3615e9267 100644
--- a/gcc/testsuite/g++.dg/ext/has_virtual_destructor.C
+++ b/gcc/testsuite/g++.dg/ext/has_virtual_destructor.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 #include <exception>
 
diff --git a/gcc/testsuite/g++.dg/ext/is_abstract.C b/gcc/testsuite/g++.dg/ext/is_abstract.C
index 2d7149452ff..6bda8c2d1b1 100644
--- a/gcc/testsuite/g++.dg/ext/is_abstract.C
+++ b/gcc/testsuite/g++.dg/ext/is_abstract.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct A
diff --git a/gcc/testsuite/g++.dg/ext/is_aggregate.C b/gcc/testsuite/g++.dg/ext/is_aggregate.C
index bdcc70fa7c2..75172d414f5 100644
--- a/gcc/testsuite/g++.dg/ext/is_aggregate.C
+++ b/gcc/testsuite/g++.dg/ext/is_aggregate.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 template<typename T>
diff --git a/gcc/testsuite/g++.dg/ext/is_base_of.C b/gcc/testsuite/g++.dg/ext/is_base_of.C
index 8afa532e1cd..7204717e238 100644
--- a/gcc/testsuite/g++.dg/ext/is_base_of.C
+++ b/gcc/testsuite/g++.dg/ext/is_base_of.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 class A1
diff --git a/gcc/testsuite/g++.dg/ext/is_class.C b/gcc/testsuite/g++.dg/ext/is_class.C
index 6f398285580..f06f53e3ca8 100644
--- a/gcc/testsuite/g++.dg/ext/is_class.C
+++ b/gcc/testsuite/g++.dg/ext/is_class.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct A
diff --git a/gcc/testsuite/g++.dg/ext/is_convertible2.C b/gcc/testsuite/g++.dg/ext/is_convertible2.C
index 9b46e264379..3dd90bdafb9 100644
--- a/gcc/testsuite/g++.dg/ext/is_convertible2.C
+++ b/gcc/testsuite/g++.dg/ext/is_convertible2.C
@@ -1,5 +1,6 @@
 // PR c++/106784
 // { dg-do compile { target c++20 } }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 // Adapted from <https://en.cppreference.com/w/cpp/types/is_convertible>.
 
 #include <string>
diff --git a/gcc/testsuite/g++.dg/ext/is_empty.C b/gcc/testsuite/g++.dg/ext/is_empty.C
index 4c58941b3bf..03c7dc0919e 100644
--- a/gcc/testsuite/g++.dg/ext/is_empty.C
+++ b/gcc/testsuite/g++.dg/ext/is_empty.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct A
diff --git a/gcc/testsuite/g++.dg/ext/is_enum.C b/gcc/testsuite/g++.dg/ext/is_enum.C
index 4ac1723ed9a..337c00ef145 100644
--- a/gcc/testsuite/g++.dg/ext/is_enum.C
+++ b/gcc/testsuite/g++.dg/ext/is_enum.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct A
diff --git a/gcc/testsuite/g++.dg/ext/is_pod.C b/gcc/testsuite/g++.dg/ext/is_pod.C
index d073889c839..39035859c20 100644
--- a/gcc/testsuite/g++.dg/ext/is_pod.C
+++ b/gcc/testsuite/g++.dg/ext/is_pod.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct A
diff --git a/gcc/testsuite/g++.dg/ext/is_polymorphic.C b/gcc/testsuite/g++.dg/ext/is_polymorphic.C
index 462e4b705d8..54adaf411ab 100644
--- a/gcc/testsuite/g++.dg/ext/is_polymorphic.C
+++ b/gcc/testsuite/g++.dg/ext/is_polymorphic.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 #include <exception>
 
diff --git a/gcc/testsuite/g++.dg/ext/is_union.C b/gcc/testsuite/g++.dg/ext/is_union.C
index c95f5a6e561..b2ac4872274 100644
--- a/gcc/testsuite/g++.dg/ext/is_union.C
+++ b/gcc/testsuite/g++.dg/ext/is_union.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct A
diff --git a/gcc/testsuite/g++.dg/ext/underlying_type10.C b/gcc/testsuite/g++.dg/ext/underlying_type10.C
index 66ba02e997e..c6e8d6d0b36 100644
--- a/gcc/testsuite/g++.dg/ext/underlying_type10.C
+++ b/gcc/testsuite/g++.dg/ext/underlying_type10.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/ext/underlying_type4.C b/gcc/testsuite/g++.dg/ext/underlying_type4.C
index b80ed57694b..f85d35c9697 100644
--- a/gcc/testsuite/g++.dg/ext/underlying_type4.C
+++ b/gcc/testsuite/g++.dg/ext/underlying_type4.C
@@ -1,4 +1,5 @@
 // { dg-do compile }
+// { dg-skip-if "requires hosted libstdc++ for tr1/type_traits" { ! hostedlib } }
 
 #include <tr1/type_traits>
 
diff --git a/gcc/testsuite/g++.dg/inherit/virtual8.C b/gcc/testsuite/g++.dg/inherit/virtual8.C
index 4f6a119b287..def4eb920f6 100644
--- a/gcc/testsuite/g++.dg/inherit/virtual8.C
+++ b/gcc/testsuite/g++.dg/inherit/virtual8.C
@@ -1,5 +1,6 @@
 // PR c++/48035
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstring" { ! hostedlib } }
 
 #include <new>
 #include <cstring>
diff --git a/gcc/testsuite/g++.dg/init/array4.C b/gcc/testsuite/g++.dg/init/array4.C
index 4712e9d7253..61ef9c0d33f 100644
--- a/gcc/testsuite/g++.dg/init/array4.C
+++ b/gcc/testsuite/g++.dg/init/array4.C
@@ -1,5 +1,6 @@
 // { dg-do compile }
 // { dg-require-effective-target size20plus }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 // Origin: Markus Breuer <markus.breuer@materna.de>
 
 // PR c++/6944
diff --git a/gcc/testsuite/g++.dg/init/new18.C b/gcc/testsuite/g++.dg/init/new18.C
index afe3da9b53e..0542b28dd45 100644
--- a/gcc/testsuite/g++.dg/init/new18.C
+++ b/gcc/testsuite/g++.dg/init/new18.C
@@ -1,5 +1,6 @@
 // { dg-do compile }
 // { dg-options "-O2 -fstrict-aliasing -Wno-return-type" }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 // This caused an ICE during placement new.
 
diff --git a/gcc/testsuite/g++.dg/init/new39.C b/gcc/testsuite/g++.dg/init/new39.C
index 430701db684..14f4d17c6a3 100644
--- a/gcc/testsuite/g++.dg/init/new39.C
+++ b/gcc/testsuite/g++.dg/init/new39.C
@@ -1,5 +1,6 @@
 // Testcase for overflow handling in operator new[].
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for stdexcept" { ! hostedlib } }
 
 #include <stdlib.h>
 #include <stdexcept>
diff --git a/gcc/testsuite/g++.dg/init/new40.C b/gcc/testsuite/g++.dg/init/new40.C
index 30d9de62a02..8d90533b079 100644
--- a/gcc/testsuite/g++.dg/init/new40.C
+++ b/gcc/testsuite/g++.dg/init/new40.C
@@ -4,6 +4,7 @@
 // { dg-options -std=c++03 }
 // { dg-do run }
 // { dg-xfail-run-if "AIX operator new" { powerpc-ibm-aix* } }
+// { dg-skip-if "requires hosted libstdc++ for stdexcept" { ! hostedlib } }
 
 #include <assert.h>
 #include <stdlib.h>
diff --git a/gcc/testsuite/g++.dg/ipa/devirt-29.C b/gcc/testsuite/g++.dg/ipa/devirt-29.C
index b4f24a1044c..fbd5f5f0cec 100644
--- a/gcc/testsuite/g++.dg/ipa/devirt-29.C
+++ b/gcc/testsuite/g++.dg/ipa/devirt-29.C
@@ -1,4 +1,5 @@
 /* { dg-do run { target c++11 } } */
+/* { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } } */
 /* There is a devirtualizable call. In PR60306 we deduced wrong target to cxa_pure_virtual.
    For gcc 4.10 we temporarily disable the devirtualization.  */
 /* { dg-options "-O3"  } */
diff --git a/gcc/testsuite/g++.dg/ipa/pr85549.C b/gcc/testsuite/g++.dg/ipa/pr85549.C
index ae0336e16b7..4c6e2d266f7 100644
--- a/gcc/testsuite/g++.dg/ipa/pr85549.C
+++ b/gcc/testsuite/g++.dg/ipa/pr85549.C
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-O2" } */
+/* { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } } */
 
 #include <vector>
 
diff --git a/gcc/testsuite/g++.dg/lookup/missing-std-include-3.C b/gcc/testsuite/g++.dg/lookup/missing-std-include-3.C
index ee567edde60..02dabceb4cc 100644
--- a/gcc/testsuite/g++.dg/lookup/missing-std-include-3.C
+++ b/gcc/testsuite/g++.dg/lookup/missing-std-include-3.C
@@ -3,6 +3,7 @@
    For this case, expect to insert the #include at the top of the file. */
 
 /* { dg-options "-fdiagnostics-generate-patch" } */
+/* { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } } */
 
 void test ()
 {
diff --git a/gcc/testsuite/g++.dg/lookup/pr21802.C b/gcc/testsuite/g++.dg/lookup/pr21802.C
index 18b2219166a..40620bf695e 100644
--- a/gcc/testsuite/g++.dg/lookup/pr21802.C
+++ b/gcc/testsuite/g++.dg/lookup/pr21802.C
@@ -1,5 +1,6 @@
 // PR c++/21802
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 
 struct X;
diff --git a/gcc/testsuite/g++.dg/lto/20091022-2_0.C b/gcc/testsuite/g++.dg/lto/20091022-2_0.C
index 29ed9b6b0a0..a1606bc3b62 100644
--- a/gcc/testsuite/g++.dg/lto/20091022-2_0.C
+++ b/gcc/testsuite/g++.dg/lto/20091022-2_0.C
@@ -1,5 +1,6 @@
 // { dg-lto-do link }
 // { dg-lto-options {{-O3 -flto -Winline}} }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <string>
 
diff --git a/gcc/testsuite/g++.dg/lto/20091219_0.C b/gcc/testsuite/g++.dg/lto/20091219_0.C
index b76a95a9d13..eede1c1d9a6 100644
--- a/gcc/testsuite/g++.dg/lto/20091219_0.C
+++ b/gcc/testsuite/g++.dg/lto/20091219_0.C
@@ -1,5 +1,6 @@
 // { dg-lto-do run }
 // { dg-lto-options {{-O3 -flto}} }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <string>
 #include <map>
diff --git a/gcc/testsuite/g++.dg/lto/pr89358_0.C b/gcc/testsuite/g++.dg/lto/pr89358_0.C
index 328c60c2fb1..ed14b9da7aa 100644
--- a/gcc/testsuite/g++.dg/lto/pr89358_0.C
+++ b/gcc/testsuite/g++.dg/lto/pr89358_0.C
@@ -1,5 +1,6 @@
 /* { dg-lto-do link } */
 /* { dg-lto-options "-std=c++17"  } */
+/* { dg-skip-if "requires hosted libstdc++ for map" { ! hostedlib } } */
 #include <map>
 
 extern void test();
diff --git a/gcc/testsuite/g++.dg/lto/pr89358_1.C b/gcc/testsuite/g++.dg/lto/pr89358_1.C
index 68b80a37662..9085b2641d6 100644
--- a/gcc/testsuite/g++.dg/lto/pr89358_1.C
+++ b/gcc/testsuite/g++.dg/lto/pr89358_1.C
@@ -1,4 +1,5 @@
 /* { dg-options "-std=c++14"  } */
+
 #include <map>
 
 void test()
diff --git a/gcc/testsuite/g++.dg/modules/binding-1_a.H b/gcc/testsuite/g++.dg/modules/binding-1_a.H
index 2d2460d9039..ba9fed733ab 100644
--- a/gcc/testsuite/g++.dg/modules/binding-1_a.H
+++ b/gcc/testsuite/g++.dg/modules/binding-1_a.H
@@ -1,4 +1,5 @@
 // { dg-additional-options -fmodule-header }
 // { dg-module-cmi {} }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 
 #include <iostream>
diff --git a/gcc/testsuite/g++.dg/modules/binding-1_b.H b/gcc/testsuite/g++.dg/modules/binding-1_b.H
index eb5140bc024..09b7adfa83c 100644
--- a/gcc/testsuite/g++.dg/modules/binding-1_b.H
+++ b/gcc/testsuite/g++.dg/modules/binding-1_b.H
@@ -1,4 +1,5 @@
 // { dg-additional-options -fmodule-header }
 // { dg-module-cmi {} }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <string>
diff --git a/gcc/testsuite/g++.dg/modules/contracts-1_a.C b/gcc/testsuite/g++.dg/modules/contracts-1_a.C
index f991ef8644e..4bbfaf4237c 100644
--- a/gcc/testsuite/g++.dg/modules/contracts-1_a.C
+++ b/gcc/testsuite/g++.dg/modules/contracts-1_a.C
@@ -1,6 +1,7 @@
 // Basic test to ensure that guarded templates correctly serialize and
 // deserialize their contracts through the CMI.
 // { dg-additional-options "-fmodules-ts -fcontracts -fcontract-continuation-mode=on" }
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 module;
 #include <cstdio>
 #include <experimental/contract>
diff --git a/gcc/testsuite/g++.dg/modules/contracts-1_b.C b/gcc/testsuite/g++.dg/modules/contracts-1_b.C
index 30c15f6928b..5a890ea6f92 100644
--- a/gcc/testsuite/g++.dg/modules/contracts-1_b.C
+++ b/gcc/testsuite/g++.dg/modules/contracts-1_b.C
@@ -1,5 +1,6 @@
 // { dg-module-do run }
 // { dg-additional-options "-fmodules-ts -fcontracts -fcontract-continuation-mode=on" }
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 module;
 #include <cstdio>
 export module bar;
diff --git a/gcc/testsuite/g++.dg/modules/contracts-2_a.C b/gcc/testsuite/g++.dg/modules/contracts-2_a.C
index 828d680d2a0..781192dc3fe 100644
--- a/gcc/testsuite/g++.dg/modules/contracts-2_a.C
+++ b/gcc/testsuite/g++.dg/modules/contracts-2_a.C
@@ -47,3 +47,4 @@ export int pre_print2(int n);
 export int fn3(int n)
   [[ pre: pre_print2(n) > 0 ]];
 
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
diff --git a/gcc/testsuite/g++.dg/modules/contracts-2_b.C b/gcc/testsuite/g++.dg/modules/contracts-2_b.C
index 01939aeb947..9fdcb0c46a4 100644
--- a/gcc/testsuite/g++.dg/modules/contracts-2_b.C
+++ b/gcc/testsuite/g++.dg/modules/contracts-2_b.C
@@ -33,3 +33,4 @@ int fn3(int x)
   return x;
 }
 
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
diff --git a/gcc/testsuite/g++.dg/modules/contracts-3_a.C b/gcc/testsuite/g++.dg/modules/contracts-3_a.C
index a4f03d35842..92f59996b94 100644
--- a/gcc/testsuite/g++.dg/modules/contracts-3_a.C
+++ b/gcc/testsuite/g++.dg/modules/contracts-3_a.C
@@ -1,6 +1,7 @@
 // Basic test to ensure that guarded templates correctly serialize and
 // deserialize their contracts through the CMI.
 // { dg-additional-options "-fmodules-ts -fcontracts -fcontract-continuation-mode=on" }
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 module;
 #include <cstdio>
 #include <experimental/contract>
diff --git a/gcc/testsuite/g++.dg/modules/contracts-3_b.C b/gcc/testsuite/g++.dg/modules/contracts-3_b.C
index b1d6375391b..e5a75d396aa 100644
--- a/gcc/testsuite/g++.dg/modules/contracts-3_b.C
+++ b/gcc/testsuite/g++.dg/modules/contracts-3_b.C
@@ -1,5 +1,6 @@
 // { dg-module-do run }
 // { dg-additional-options "-fmodules-ts -fcontracts -fcontract-role=default:ignore,ignore,ignore" }
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 module;
 #include <cstdio>
 export module bar;
diff --git a/gcc/testsuite/g++.dg/modules/contracts-4_a.C b/gcc/testsuite/g++.dg/modules/contracts-4_a.C
index f269e6c2078..357bad83d3d 100644
--- a/gcc/testsuite/g++.dg/modules/contracts-4_a.C
+++ b/gcc/testsuite/g++.dg/modules/contracts-4_a.C
@@ -2,6 +2,7 @@
 // contracts flag is not set, regardless of the current TU's contract
 // configuration.
 // { dg-additional-options "-fmodules-ts -fcontracts -fcontract-role=default:maybe,maybe,ignore" }
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 module;
 #include <cstdio>
 #include <experimental/contract>
diff --git a/gcc/testsuite/g++.dg/modules/contracts-4_d.C b/gcc/testsuite/g++.dg/modules/contracts-4_d.C
index dc56251d1d8..d6858c2271d 100644
--- a/gcc/testsuite/g++.dg/modules/contracts-4_d.C
+++ b/gcc/testsuite/g++.dg/modules/contracts-4_d.C
@@ -1,5 +1,6 @@
 // { dg-module-do run }
 // { dg-additional-options "-fmodules-ts -fcontracts" }
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 module;
 #include <cstdio>
 export module baz;
diff --git a/gcc/testsuite/g++.dg/modules/global-3_a.C b/gcc/testsuite/g++.dg/modules/global-3_a.C
index fe7bb849ae8..70d92ea01ca 100644
--- a/gcc/testsuite/g++.dg/modules/global-3_a.C
+++ b/gcc/testsuite/g++.dg/modules/global-3_a.C
@@ -1,5 +1,6 @@
 // { dg-module-do run }
 // { dg-additional-options "-fmodules-ts -fdump-lang-module-graph" }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 module;
 #include <iostream>
 export module logger;
diff --git a/gcc/testsuite/g++.dg/modules/hello-1_a.C b/gcc/testsuite/g++.dg/modules/hello-1_a.C
index 75853d6c8ca..ce13fd9238e 100644
--- a/gcc/testsuite/g++.dg/modules/hello-1_a.C
+++ b/gcc/testsuite/g++.dg/modules/hello-1_a.C
@@ -1,5 +1,6 @@
 // { dg-module-do run }
 // { dg-additional-options -fmodules-ts }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 
 module;
 #include <iostream>
diff --git a/gcc/testsuite/g++.dg/modules/iostream-1_a.H b/gcc/testsuite/g++.dg/modules/iostream-1_a.H
index 00f8c192bd8..d8c323cde63 100644
--- a/gcc/testsuite/g++.dg/modules/iostream-1_a.H
+++ b/gcc/testsuite/g++.dg/modules/iostream-1_a.H
@@ -1,6 +1,7 @@
 // { dg-module-do run }
 // { dg-additional-options "-fmodule-header" }
 // { dg-module-cmi {} }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 
 #ifndef MY_IOSTREAM_H
 #define MY_IOSTREAM_H
diff --git a/gcc/testsuite/g++.dg/modules/part-5_c.C b/gcc/testsuite/g++.dg/modules/part-5_c.C
index 0f148c3fce3..cdcea49e020 100644
--- a/gcc/testsuite/g++.dg/modules/part-5_c.C
+++ b/gcc/testsuite/g++.dg/modules/part-5_c.C
@@ -1,4 +1,5 @@
 // { dg-additional-options -fmodules-ts }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 
 #include <iostream>
 import module1;
diff --git a/gcc/testsuite/g++.dg/modules/string-1_a.H b/gcc/testsuite/g++.dg/modules/string-1_a.H
index 77c565f7ddf..250dcbad0c3 100644
--- a/gcc/testsuite/g++.dg/modules/string-1_a.H
+++ b/gcc/testsuite/g++.dg/modules/string-1_a.H
@@ -1,4 +1,5 @@
 // { dg-additional-options -fmodule-header }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 // { dg-module-cmi {} }
 #include <string>
diff --git a/gcc/testsuite/g++.dg/modules/string-1_b.C b/gcc/testsuite/g++.dg/modules/string-1_b.C
index 098289c54f1..d066b11f916 100644
--- a/gcc/testsuite/g++.dg/modules/string-1_b.C
+++ b/gcc/testsuite/g++.dg/modules/string-1_b.C
@@ -1,4 +1,5 @@
 // { dg-additional-options "-fmodules-ts -fno-module-lazy" }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <string>
 import "string-1_a.H";
diff --git a/gcc/testsuite/g++.dg/modules/string-view1.C b/gcc/testsuite/g++.dg/modules/string-view1.C
index f5391f39180..19219a1e266 100644
--- a/gcc/testsuite/g++.dg/modules/string-view1.C
+++ b/gcc/testsuite/g++.dg/modules/string-view1.C
@@ -1,4 +1,5 @@
 // { dg-additional-options "-fmodules-ts" }
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 module;
 #include <cstdio>
 #include <string_view>
diff --git a/gcc/testsuite/g++.dg/modules/xtreme-header-1_a.H b/gcc/testsuite/g++.dg/modules/xtreme-header-1_a.H
index f30dacce0cc..940c6da9576 100644
--- a/gcc/testsuite/g++.dg/modules/xtreme-header-1_a.H
+++ b/gcc/testsuite/g++.dg/modules/xtreme-header-1_a.H
@@ -1,4 +1,5 @@
 // { dg-additional-options -fmodule-header }
+// { dg-skip-if "requires hosted libstdc++ for cassert in xtreme-header-1.h" { ! hostedlib } }
 
 // { dg-module-cmi {} }
 #include "xtreme-header-1.h"
diff --git a/gcc/testsuite/g++.dg/modules/xtreme-header-1_b.C b/gcc/testsuite/g++.dg/modules/xtreme-header-1_b.C
index e2730163ffc..b64f5944b3c 100644
--- a/gcc/testsuite/g++.dg/modules/xtreme-header-1_b.C
+++ b/gcc/testsuite/g++.dg/modules/xtreme-header-1_b.C
@@ -1,4 +1,5 @@
 // { dg-additional-options "-fmodules-ts -fno-module-lazy" }
+// { dg-skip-if "requires hosted libstdc++ for cassert in xtreme-header-1.h" { ! hostedlib } }
 
 #include "xtreme-header-1.h"
 import "xtreme-header-1_a.H";
diff --git a/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H b/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H
index 217ead37d25..a52fefdae0a 100644
--- a/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H
+++ b/gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H
@@ -1,4 +1,5 @@
 // { dg-additional-options -fmodule-header }
+// { dg-skip-if "requires hosted libstdc++ for execution in xtreme-header-2.h" { ! hostedlib } }
 
 // { dg-module-cmi {} }
 #include "xtreme-header-2.h"
diff --git a/gcc/testsuite/g++.dg/modules/xtreme-header-2_b.C b/gcc/testsuite/g++.dg/modules/xtreme-header-2_b.C
index 1f608ec29b7..b7ff864ac13 100644
--- a/gcc/testsuite/g++.dg/modules/xtreme-header-2_b.C
+++ b/gcc/testsuite/g++.dg/modules/xtreme-header-2_b.C
@@ -1,4 +1,5 @@
 // { dg-additional-options "-fmodules-ts -fno-module-lazy" }
+// { dg-skip-if "requires hosted libstdc++ for execution in xtreme-header-2.h" { ! hostedlib } }
 
 #include "xtreme-header-2.h"
 import "xtreme-header-2_a.H";
diff --git a/gcc/testsuite/g++.dg/modules/xtreme-header-3_a.H b/gcc/testsuite/g++.dg/modules/xtreme-header-3_a.H
index d3ff6fd4b56..695fb279b4a 100644
--- a/gcc/testsuite/g++.dg/modules/xtreme-header-3_a.H
+++ b/gcc/testsuite/g++.dg/modules/xtreme-header-3_a.H
@@ -1,4 +1,5 @@
 // { dg-additional-options -fmodule-header }
+// { dg-skip-if "requires hosted libstdc++ for deque in xtreme-header-3.h" { ! hostedlib } }
 
 // { dg-module-cmi {} }
 #include "xtreme-header-3.h"
diff --git a/gcc/testsuite/g++.dg/modules/xtreme-header-3_b.C b/gcc/testsuite/g++.dg/modules/xtreme-header-3_b.C
index 2eb3145c944..5a912b8fba1 100644
--- a/gcc/testsuite/g++.dg/modules/xtreme-header-3_b.C
+++ b/gcc/testsuite/g++.dg/modules/xtreme-header-3_b.C
@@ -1,4 +1,5 @@
 // { dg-additional-options "-fmodules-ts -fno-module-lazy" }
+// { dg-skip-if "requires hosted libstdc++ for deque in xtreme-header-3.h" { ! hostedlib } }
 
 #include "xtreme-header-3.h"
 import "xtreme-header-3_a.H";
diff --git a/gcc/testsuite/g++.dg/modules/xtreme-header-4_a.H b/gcc/testsuite/g++.dg/modules/xtreme-header-4_a.H
index 391adbe8ebf..eb1815c253b 100644
--- a/gcc/testsuite/g++.dg/modules/xtreme-header-4_a.H
+++ b/gcc/testsuite/g++.dg/modules/xtreme-header-4_a.H
@@ -1,4 +1,5 @@
 // { dg-additional-options -fmodule-header }
+// { dg-skip-if "requires hosted libstdc++ for charconv in xtreme-header-4.h" { ! hostedlib } }
 
 // { dg-module-cmi {} }
 #include "xtreme-header-4.h"
diff --git a/gcc/testsuite/g++.dg/modules/xtreme-header-4_b.C b/gcc/testsuite/g++.dg/modules/xtreme-header-4_b.C
index ff7147ebf64..663b3bada3d 100644
--- a/gcc/testsuite/g++.dg/modules/xtreme-header-4_b.C
+++ b/gcc/testsuite/g++.dg/modules/xtreme-header-4_b.C
@@ -1,4 +1,5 @@
 // { dg-additional-options "-fmodules-ts -fno-module-lazy" }
+// { dg-skip-if "requires hosted libstdc++ for charconv in xtreme-header-4.h" { ! hostedlib } }
 
 #include "xtreme-header-4.h"
 import "xtreme-header-4_a.H";
diff --git a/gcc/testsuite/g++.dg/modules/xtreme-header-5_a.H b/gcc/testsuite/g++.dg/modules/xtreme-header-5_a.H
index a03c0241c9e..371995493b2 100644
--- a/gcc/testsuite/g++.dg/modules/xtreme-header-5_a.H
+++ b/gcc/testsuite/g++.dg/modules/xtreme-header-5_a.H
@@ -1,4 +1,5 @@
 // { dg-additional-options -fmodule-header }
+// { dg-skip-if "requires hosted libstdc++ for any in xtreme-header-5.h" { ! hostedlib } }
 
 // { dg-module-cmi {} }
 #include "xtreme-header-5.h"
diff --git a/gcc/testsuite/g++.dg/modules/xtreme-header-5_b.C b/gcc/testsuite/g++.dg/modules/xtreme-header-5_b.C
index 8cf7d6856b9..e6fe2d98d7f 100644
--- a/gcc/testsuite/g++.dg/modules/xtreme-header-5_b.C
+++ b/gcc/testsuite/g++.dg/modules/xtreme-header-5_b.C
@@ -1,4 +1,5 @@
 // { dg-additional-options "-fmodules-ts -fno-module-lazy" }
+// { dg-skip-if "requires hosted libstdc++ for any in xtreme-header-5.h" { ! hostedlib } }
 
 #include "xtreme-header-5.h"
 import "xtreme-header-5_a.H";
diff --git a/gcc/testsuite/g++.dg/modules/xtreme-header-6_a.H b/gcc/testsuite/g++.dg/modules/xtreme-header-6_a.H
index aec5a031fc6..e5b9f2ecf6c 100644
--- a/gcc/testsuite/g++.dg/modules/xtreme-header-6_a.H
+++ b/gcc/testsuite/g++.dg/modules/xtreme-header-6_a.H
@@ -1,4 +1,5 @@
 // { dg-additional-options -fmodule-header }
+// { dg-skip-if "requires hosted libstdc++ for barrier in xtreme-header-6.h" { ! hostedlib } }
 
 // { dg-module-cmi {} }
 #include "xtreme-header-6.h"
diff --git a/gcc/testsuite/g++.dg/modules/xtreme-header-6_b.C b/gcc/testsuite/g++.dg/modules/xtreme-header-6_b.C
index 0d2cc69df54..f69c56184a7 100644
--- a/gcc/testsuite/g++.dg/modules/xtreme-header-6_b.C
+++ b/gcc/testsuite/g++.dg/modules/xtreme-header-6_b.C
@@ -1,4 +1,5 @@
 // { dg-additional-options "-fmodules-ts -fno-module-lazy" }
+// { dg-skip-if "requires hosted libstdc++ for barrier in xtreme-header-6.h" { ! hostedlib } }
 
 #include "xtreme-header-6.h"
 import "xtreme-header-6_a.H";
diff --git a/gcc/testsuite/g++.dg/modules/xtreme-header_a.H b/gcc/testsuite/g++.dg/modules/xtreme-header_a.H
index bf7859fba99..9c42b7a38ce 100644
--- a/gcc/testsuite/g++.dg/modules/xtreme-header_a.H
+++ b/gcc/testsuite/g++.dg/modules/xtreme-header_a.H
@@ -1,4 +1,5 @@
 // { dg-additional-options -fmodule-header }
+// { dg-skip-if "requires hosted libstdc++ for any in xtreme-header.h" { ! hostedlib } }
 
 // { dg-module-cmi {} }
 #include "xtreme-header.h"
diff --git a/gcc/testsuite/g++.dg/modules/xtreme-header_b.C b/gcc/testsuite/g++.dg/modules/xtreme-header_b.C
index 2e736da36dc..2b0e91af52a 100644
--- a/gcc/testsuite/g++.dg/modules/xtreme-header_b.C
+++ b/gcc/testsuite/g++.dg/modules/xtreme-header_b.C
@@ -1,4 +1,5 @@
 // { dg-additional-options "-fmodules-ts -fno-module-lazy" }
+// { dg-skip-if "requires hosted libstdc++ for any in xtreme-header.h" { ! hostedlib } }
 
 #include "xtreme-header.h"
 import "xtreme-header_a.H";
diff --git a/gcc/testsuite/g++.dg/modules/xtreme-tr1_a.H b/gcc/testsuite/g++.dg/modules/xtreme-tr1_a.H
index bed70a683bb..02a2a7e9a79 100644
--- a/gcc/testsuite/g++.dg/modules/xtreme-tr1_a.H
+++ b/gcc/testsuite/g++.dg/modules/xtreme-tr1_a.H
@@ -1,4 +1,5 @@
 // { dg-additional-options -fmodule-header }
+// { dg-skip-if "requires hosted libstdc++ for tr1/functional in xtreme-tr1.h" { ! hostedlib } }
 
 // { dg-module-cmi {} }
 #include "xtreme-tr1.h"
diff --git a/gcc/testsuite/g++.dg/modules/xtreme-tr1_b.C b/gcc/testsuite/g++.dg/modules/xtreme-tr1_b.C
index 9bb1dc294ad..f0c59902193 100644
--- a/gcc/testsuite/g++.dg/modules/xtreme-tr1_b.C
+++ b/gcc/testsuite/g++.dg/modules/xtreme-tr1_b.C
@@ -1,4 +1,5 @@
 // { dg-additional-options "-fmodules-ts -fno-module-lazy" }
+// { dg-skip-if "requires hosted libstdc++ for tr1/functional in xtreme-tr1.h" { ! hostedlib } }
 
 #include "xtreme-tr1.h"
 import "xtreme-tr1_a.H";
diff --git a/gcc/testsuite/g++.dg/opt/dtor4-aux.cc b/gcc/testsuite/g++.dg/opt/dtor4-aux.cc
index e3ca43b7430..057ba0fa91a 100644
--- a/gcc/testsuite/g++.dg/opt/dtor4-aux.cc
+++ b/gcc/testsuite/g++.dg/opt/dtor4-aux.cc
@@ -1,5 +1,6 @@
 // { dg-do compile }
 // { dg-options "" }
+// { dg-skip-if "requires hosted libstdc++ for cassert in dtor4.h" { ! hostedlib } }
 
 #include "dtor4.h"
 
diff --git a/gcc/testsuite/g++.dg/opt/dtor4.C b/gcc/testsuite/g++.dg/opt/dtor4.C
index c58fadfa18d..41f1a208240 100644
--- a/gcc/testsuite/g++.dg/opt/dtor4.C
+++ b/gcc/testsuite/g++.dg/opt/dtor4.C
@@ -2,6 +2,7 @@
 // { dg-do run }
 // { dg-options "-O1 -fipa-sra" }
 // { dg-additional-sources "dtor4-aux.cc" }
+// { dg-skip-if "requires hosted libstdc++ for cassert in dtor4.h" { ! hostedlib } }
 
 #include "dtor4.h"
 
diff --git a/gcc/testsuite/g++.dg/opt/eh4.C b/gcc/testsuite/g++.dg/opt/eh4.C
index 0a62ee2db27..be30fcc1ffd 100644
--- a/gcc/testsuite/g++.dg/opt/eh4.C
+++ b/gcc/testsuite/g++.dg/opt/eh4.C
@@ -1,5 +1,6 @@
 // { dg-do run }
 // { dg-options "-O3" }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 // Make sure that the call to terminate within F2 is not eliminated
 // by incorrect MUST_NOT_THROW optimization.  Note that we expect F1
diff --git a/gcc/testsuite/g++.dg/opt/nrv17.C b/gcc/testsuite/g++.dg/opt/nrv17.C
index 6248bca037a..27004e06a68 100644
--- a/gcc/testsuite/g++.dg/opt/nrv17.C
+++ b/gcc/testsuite/g++.dg/opt/nrv17.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for complex" { ! hostedlib } }
 
 #include <cstdlib>
 #include <complex>
diff --git a/gcc/testsuite/g++.dg/opt/pr102970.C b/gcc/testsuite/g++.dg/opt/pr102970.C
index 2acb3c2c8dc..84f6fffcad0 100644
--- a/gcc/testsuite/g++.dg/opt/pr102970.C
+++ b/gcc/testsuite/g++.dg/opt/pr102970.C
@@ -1,6 +1,7 @@
 // { dg-do run }
 // { dg-require-effective-target c++14 }
 // { dg-options "-O2 -funroll-loops -fno-tree-vectorize" }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 #include <vector>
 #include <algorithm>
diff --git a/gcc/testsuite/g++.dg/opt/pr109434.C b/gcc/testsuite/g++.dg/opt/pr109434.C
index cffa327fd9b..9486d1506dd 100644
--- a/gcc/testsuite/g++.dg/opt/pr109434.C
+++ b/gcc/testsuite/g++.dg/opt/pr109434.C
@@ -1,6 +1,7 @@
 // { dg-do compile }
 // { dg-require-effective-target c++17 }
 // { dg-options "-O2 -Wall" }
+// { dg-skip-if "requires hosted libstdc++ for stdexcept" { ! hostedlib } }
 
 #include <optional>
 #include <stdexcept>
diff --git a/gcc/testsuite/g++.dg/opt/pr15551.C b/gcc/testsuite/g++.dg/opt/pr15551.C
index dc3ddc44662..ccaa233ea1e 100644
--- a/gcc/testsuite/g++.dg/opt/pr15551.C
+++ b/gcc/testsuite/g++.dg/opt/pr15551.C
@@ -4,6 +4,7 @@
 //
 // { dg-do run }
 // { dg-options "-O3" }
+// { dg-skip-if "requires hosted libstdc++ for cstring" { ! hostedlib } }
 
 #include <cstring>
 #include <fstream>
diff --git a/gcc/testsuite/g++.dg/opt/pr30965.C b/gcc/testsuite/g++.dg/opt/pr30965.C
index 4adca8b2f62..e4b7cf0b5c1 100644
--- a/gcc/testsuite/g++.dg/opt/pr30965.C
+++ b/gcc/testsuite/g++.dg/opt/pr30965.C
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O3 -fno-ipa-icf -fdump-tree-optimized" } */
+/* { dg-skip-if "requires hosted libstdc++ for tr1/functional" { ! hostedlib } } */
 
 #include <tr1/functional>
 #include <algorithm>
diff --git a/gcc/testsuite/g++.dg/opt/pr77844.C b/gcc/testsuite/g++.dg/opt/pr77844.C
index 66eb978ddb7..3a8252adb9c 100644
--- a/gcc/testsuite/g++.dg/opt/pr77844.C
+++ b/gcc/testsuite/g++.dg/opt/pr77844.C
@@ -1,6 +1,7 @@
 // PR debug/77844
 // { dg-do compile }
 // { dg-options "-O3 -g" }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 #include <vector>
 
diff --git a/gcc/testsuite/g++.dg/opt/pr85393.C b/gcc/testsuite/g++.dg/opt/pr85393.C
index a2a3162300e..4f3c65bdd5c 100644
--- a/gcc/testsuite/g++.dg/opt/pr85393.C
+++ b/gcc/testsuite/g++.dg/opt/pr85393.C
@@ -2,6 +2,7 @@
 // { dg-do run { target c++11 } }
 // { dg-options "-O2" }
 // { dg-additional-sources "pr85393-aux.cc" }
+// { dg-skip-if "requires hosted libstdc++ for stdexcept" { ! hostedlib } }
 
 #include <stdexcept>
 #include <vector>
diff --git a/gcc/testsuite/g++.dg/opt/reload3.C b/gcc/testsuite/g++.dg/opt/reload3.C
index daa7ffdbcef..385771154a8 100644
--- a/gcc/testsuite/g++.dg/opt/reload3.C
+++ b/gcc/testsuite/g++.dg/opt/reload3.C
@@ -1,6 +1,7 @@
 // PR target/38287
 // { dg-do run }
 // { dg-options "-O2 -mcpu=v8 -fPIC" { target { { sparc*-*-* } && { ilp32 && fpic } } } }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #include <cstdlib>
 
diff --git a/gcc/testsuite/g++.dg/other/final7.C b/gcc/testsuite/g++.dg/other/final7.C
index 43ab7baae97..5c499a667fd 100644
--- a/gcc/testsuite/g++.dg/other/final7.C
+++ b/gcc/testsuite/g++.dg/other/final7.C
@@ -1,5 +1,6 @@
 // PR c++/90909
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 
diff --git a/gcc/testsuite/g++.dg/other/pr40561.C b/gcc/testsuite/g++.dg/other/pr40561.C
index c94dfa4bd62..09cb2b38fbf 100644
--- a/gcc/testsuite/g++.dg/other/pr40561.C
+++ b/gcc/testsuite/g++.dg/other/pr40561.C
@@ -1,4 +1,5 @@
 // { dg-do compile }
+// { dg-skip-if "requires hosted libstdc++ for set" { ! hostedlib } }
 
 #include <set>
 
diff --git a/gcc/testsuite/g++.dg/other/ucnid-1-utf8.C b/gcc/testsuite/g++.dg/other/ucnid-1-utf8.C
index dab41523595..c49e8c44480 100644
--- a/gcc/testsuite/g++.dg/other/ucnid-1-utf8.C
+++ b/gcc/testsuite/g++.dg/other/ucnid-1-utf8.C
@@ -2,6 +2,7 @@
 /* { dg-options "" } */
 /* { dg-xfail-if "" { powerpc-ibm-aix* } } */
 /* { dg-skip-if "" { ! ucn } } */
+/* { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } } */
 #include <cstdlib>
 
 int À(void) { return 1; }
diff --git a/gcc/testsuite/g++.dg/other/ucnid-1.C b/gcc/testsuite/g++.dg/other/ucnid-1.C
index 954f34dff96..f9dd9fb97a8 100644
--- a/gcc/testsuite/g++.dg/other/ucnid-1.C
+++ b/gcc/testsuite/g++.dg/other/ucnid-1.C
@@ -2,6 +2,7 @@
 /* { dg-options "" } */
 /* { dg-xfail-if "" { powerpc-ibm-aix* } } */
 /* { dg-skip-if "" { ! ucn } } */
+/* { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } } */
 #include <cstdlib>
 
 int \u00C0(void) { return 1; }
diff --git a/gcc/testsuite/g++.dg/parse/lookup1.C b/gcc/testsuite/g++.dg/parse/lookup1.C
index 0325d3c6926..fa0e2007f32 100644
--- a/gcc/testsuite/g++.dg/parse/lookup1.C
+++ b/gcc/testsuite/g++.dg/parse/lookup1.C
@@ -1,3 +1,4 @@
+// { dg-skip-if "requires hosted libstdc++ for list" { ! hostedlib } }
 #include <list>
 
 using namespace std;
diff --git a/gcc/testsuite/g++.dg/parse/parse5.C b/gcc/testsuite/g++.dg/parse/parse5.C
index f9e6a035984..7ea28b5b09d 100644
--- a/gcc/testsuite/g++.dg/parse/parse5.C
+++ b/gcc/testsuite/g++.dg/parse/parse5.C
@@ -1,5 +1,6 @@
 /* PR c++/590 */
 /* { dg-do compile } */
+/* { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } } */
 
 #include <iostream>
 #include <sstream>
diff --git a/gcc/testsuite/g++.dg/pch/system-1.C b/gcc/testsuite/g++.dg/pch/system-1.C
index 72bea3c9a6f..769c5d11716 100644
--- a/gcc/testsuite/g++.dg/pch/system-1.C
+++ b/gcc/testsuite/g++.dg/pch/system-1.C
@@ -1,3 +1,5 @@
+// { dg-skip-if "requires hosted libstdc++ for iostream in system-1.H" { ! hostedlib } }
+
 #include "system-1.H"
 
 int main() 
diff --git a/gcc/testsuite/g++.dg/pch/system-2.C b/gcc/testsuite/g++.dg/pch/system-2.C
index 44f3ec018ae..91693cfdbac 100644
--- a/gcc/testsuite/g++.dg/pch/system-2.C
+++ b/gcc/testsuite/g++.dg/pch/system-2.C
@@ -1,3 +1,5 @@
+// { dg-skip-if "requires hosted libstdc++ for iostream in system-2.H" { ! hostedlib } }
+
 #include "system-2.H"
 
 int main() 
diff --git a/gcc/testsuite/g++.dg/pr100253.C b/gcc/testsuite/g++.dg/pr100253.C
index 0102caa7df8..031b4fa58db 100644
--- a/gcc/testsuite/g++.dg/pr100253.C
+++ b/gcc/testsuite/g++.dg/pr100253.C
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-O2 -fno-tree-bit-ccp -ftree-slp-vectorize" } */
+/* { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } } */
 
 #include <vector>
 
diff --git a/gcc/testsuite/g++.dg/pr104547.C b/gcc/testsuite/g++.dg/pr104547.C
index b6135ffe3a0..669f0b8e43c 100644
--- a/gcc/testsuite/g++.dg/pr104547.C
+++ b/gcc/testsuite/g++.dg/pr104547.C
@@ -1,5 +1,6 @@
 // { dg-do compile }
 // { dg-options "-O3 -fdump-tree-vrp2"  }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 #include <vector>
 
diff --git a/gcc/testsuite/g++.dg/pr107087.C b/gcc/testsuite/g++.dg/pr107087.C
index 3ca76b4153c..93428a71ae6 100644
--- a/gcc/testsuite/g++.dg/pr107087.C
+++ b/gcc/testsuite/g++.dg/pr107087.C
@@ -1,6 +1,7 @@
 // { dg-do compile }
 // { dg-require-effective-target c++11 }
 // { dg-options "-O2" }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 #include <vector>
 
diff --git a/gcc/testsuite/g++.dg/pr71488.C b/gcc/testsuite/g++.dg/pr71488.C
index ffe30f1afeb..2ca1a700446 100644
--- a/gcc/testsuite/g++.dg/pr71488.C
+++ b/gcc/testsuite/g++.dg/pr71488.C
@@ -3,6 +3,7 @@
 // { dg-options "-O3 -std=c++11" }
 // { dg-additional-options "-msse4" { target sse4_runtime } }
 // { dg-require-effective-target c++11 }
+// { dg-skip-if "requires hosted libstdc++ for valarray" { ! hostedlib } }
 
 #include <valarray>
 
diff --git a/gcc/testsuite/g++.dg/pr71655.C b/gcc/testsuite/g++.dg/pr71655.C
index 45943060bc5..0269297ed57 100644
--- a/gcc/testsuite/g++.dg/pr71655.C
+++ b/gcc/testsuite/g++.dg/pr71655.C
@@ -2,6 +2,7 @@
 // { dg-do compile }
 // { dg-options "-O3 -std=c++11" }
 // { dg-additional-options "-msse4" { target i?86-*-* x86_64-*-* } }
+// { dg-skip-if "requires hosted libstdc++ for valarray" { ! hostedlib } }
 
 #include <functional>
 #include <valarray>
diff --git a/gcc/testsuite/g++.dg/pr79095-3.C b/gcc/testsuite/g++.dg/pr79095-3.C
index 28c8a3768e6..4a1937eace6 100644
--- a/gcc/testsuite/g++.dg/pr79095-3.C
+++ b/gcc/testsuite/g++.dg/pr79095-3.C
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-Wall -O3" } */
+/* { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } } */
 
 #include <vector>
 
diff --git a/gcc/testsuite/g++.dg/pr83239.C b/gcc/testsuite/g++.dg/pr83239.C
index bf6be7a03cc..92af1b957c1 100644
--- a/gcc/testsuite/g++.dg/pr83239.C
+++ b/gcc/testsuite/g++.dg/pr83239.C
@@ -2,6 +2,7 @@
 // on simple std::vector code
 // { dg-do compile }
 // { dg-options "-O3 -finline-limit=500 -Wall -fdump-tree-optimized"  }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 #include <vector>
 
diff --git a/gcc/testsuite/g++.dg/pr99966.C b/gcc/testsuite/g++.dg/pr99966.C
index 4d689822b87..6a772342d0f 100644
--- a/gcc/testsuite/g++.dg/pr99966.C
+++ b/gcc/testsuite/g++.dg/pr99966.C
@@ -1,6 +1,7 @@
 // { dg-do compile }
 // { dg-require-effective-target c++17 }
 // { dg-options "-O2 -fdump-tree-vrp1" }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 // Test we can remove a range bound after the assert.
 
diff --git a/gcc/testsuite/g++.dg/rtti/typeid4.C b/gcc/testsuite/g++.dg/rtti/typeid4.C
index e6a1dce16f0..fc84dab697a 100644
--- a/gcc/testsuite/g++.dg/rtti/typeid4.C
+++ b/gcc/testsuite/g++.dg/rtti/typeid4.C
@@ -1,5 +1,6 @@
 // { dg-do run }
 // { dg-options "-O2" }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 
 #include <typeinfo>
 #include <iostream>
diff --git a/gcc/testsuite/g++.dg/spellcheck-inttypes.C b/gcc/testsuite/g++.dg/spellcheck-inttypes.C
index 541d668cbba..8c9189447ea 100644
--- a/gcc/testsuite/g++.dg/spellcheck-inttypes.C
+++ b/gcc/testsuite/g++.dg/spellcheck-inttypes.C
@@ -1,4 +1,5 @@
 /* { dg-options "-std=c++11" } */
+/* { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } } */
 #ifdef _AIX
 #define _STD_TYPES_T
 #endif
diff --git a/gcc/testsuite/g++.dg/template/friend10.C b/gcc/testsuite/g++.dg/template/friend10.C
index cab5e346f0b..49e75318470 100644
--- a/gcc/testsuite/g++.dg/template/friend10.C
+++ b/gcc/testsuite/g++.dg/template/friend10.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 
 // Copyright (C) 2002 Free Software Foundation, Inc.
 // Contributed by Nathan Sidwell 24 Dec 2002 <nathan@codesourcery.com>
diff --git a/gcc/testsuite/g++.dg/template/pr69961a.C b/gcc/testsuite/g++.dg/template/pr69961a.C
index b0c5d41b27c..1cd69b90130 100644
--- a/gcc/testsuite/g++.dg/template/pr69961a.C
+++ b/gcc/testsuite/g++.dg/template/pr69961a.C
@@ -1,5 +1,6 @@
 // PR c++/69961
 // { dg-do compile { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <string>
 
diff --git a/gcc/testsuite/g++.dg/template/show-template-tree-3.C b/gcc/testsuite/g++.dg/template/show-template-tree-3.C
index ef3113711ae..1b39dfca12f 100644
--- a/gcc/testsuite/g++.dg/template/show-template-tree-3.C
+++ b/gcc/testsuite/g++.dg/template/show-template-tree-3.C
@@ -9,6 +9,7 @@
    for that in this case).  */
 
 // { dg-options "-fdiagnostics-show-template-tree -Wno-return-type" }
+// { dg-skip-if "requires hosted libstdc++ for map" { ! hostedlib } }
 
 #include <map>
 #include <vector>
diff --git a/gcc/testsuite/g++.dg/torture/alias-1.C b/gcc/testsuite/g++.dg/torture/alias-1.C
index 2abe5438510..01eb86ca2a4 100644
--- a/gcc/testsuite/g++.dg/torture/alias-1.C
+++ b/gcc/testsuite/g++.dg/torture/alias-1.C
@@ -3,6 +3,7 @@
 // from inlined destructor, the buf1 variable doesn't go out of scope
 // until after the baz call.
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstring" { ! hostedlib } }
 
 #include <new>
 #include <cstring>
diff --git a/gcc/testsuite/g++.dg/torture/builtin-location.C b/gcc/testsuite/g++.dg/torture/builtin-location.C
index cad53de4b48..6dd94b25dee 100644
--- a/gcc/testsuite/g++.dg/torture/builtin-location.C
+++ b/gcc/testsuite/g++.dg/torture/builtin-location.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for cstring" { ! hostedlib } }
 
 #include <cstring>
 
diff --git a/gcc/testsuite/g++.dg/torture/pr103669.C b/gcc/testsuite/g++.dg/torture/pr103669.C
index a9509c354f1..fa96e309fec 100644
--- a/gcc/testsuite/g++.dg/torture/pr103669.C
+++ b/gcc/testsuite/g++.dg/torture/pr103669.C
@@ -1,5 +1,6 @@
 // { dg-do run }
 /* { dg-additional-options "--param=modref-max-depth=1" } */
+/* { dg-skip-if "requires hosted libstdc++ for list" { ! hostedlib } } */
 #include <list>
 
 typedef std::list<void *> PtrList;
diff --git a/gcc/testsuite/g++.dg/torture/pr104601.C b/gcc/testsuite/g++.dg/torture/pr104601.C
index 92ad73d47e9..65ee8ff8a33 100644
--- a/gcc/testsuite/g++.dg/torture/pr104601.C
+++ b/gcc/testsuite/g++.dg/torture/pr104601.C
@@ -1,6 +1,7 @@
 // PR tree-optimization/104601
 // { dg-do run }
 // { dg-options "-std=c++17" }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 #include <algorithm>
 #include <optional>
diff --git a/gcc/testsuite/g++.dg/torture/pr106922.C b/gcc/testsuite/g++.dg/torture/pr106922.C
index b0c1489fbdc..102c2bd896a 100644
--- a/gcc/testsuite/g++.dg/torture/pr106922.C
+++ b/gcc/testsuite/g++.dg/torture/pr106922.C
@@ -1,6 +1,7 @@
 // { dg-do compile }
 // { dg-require-effective-target c++17 }
 // { dg-additional-options "-Wall" }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 // -O1 doesn't iterate VN and thus has bogus uninit diagnostics
 // { dg-skip-if "" { *-*-* } { "-O1" } { "" } }
 
diff --git a/gcc/testsuite/g++.dg/torture/pr111019.C b/gcc/testsuite/g++.dg/torture/pr111019.C
index ce21a311c96..4903dc308b7 100644
--- a/gcc/testsuite/g++.dg/torture/pr111019.C
+++ b/gcc/testsuite/g++.dg/torture/pr111019.C
@@ -1,5 +1,6 @@
 // { dg-do run }
 // { dg-additional-options "-fstrict-aliasing" }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 #include <memory>
diff --git a/gcc/testsuite/g++.dg/torture/pr33572.C b/gcc/testsuite/g++.dg/torture/pr33572.C
index b4db2ac662b..7809c9733a3 100644
--- a/gcc/testsuite/g++.dg/torture/pr33572.C
+++ b/gcc/testsuite/g++.dg/torture/pr33572.C
@@ -1,5 +1,6 @@
 // { dg-do run }
 // { dg-options "-std=c++98" }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 #include <vector>
 #include <memory>
diff --git a/gcc/testsuite/g++.dg/torture/pr33735.C b/gcc/testsuite/g++.dg/torture/pr33735.C
index 0a90745b91e..30522f99cc2 100644
--- a/gcc/testsuite/g++.dg/torture/pr33735.C
+++ b/gcc/testsuite/g++.dg/torture/pr33735.C
@@ -1,4 +1,5 @@
 // { dg-do compile }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 #include <string>
 typedef struct _ts { } PyThreadState;
 PyThreadState * Py_NewInterpreter(void);
diff --git a/gcc/testsuite/g++.dg/torture/pr34099.C b/gcc/testsuite/g++.dg/torture/pr34099.C
index 49fa9cac1eb..cbed17e546a 100644
--- a/gcc/testsuite/g++.dg/torture/pr34099.C
+++ b/gcc/testsuite/g++.dg/torture/pr34099.C
@@ -1,4 +1,5 @@
 /* { dg-do run } */
+/* { dg-skip-if "requires hosted libstdc++ for complex" { ! hostedlib } } */
 
 #include <complex>
 
diff --git a/gcc/testsuite/g++.dg/torture/pr39417.C b/gcc/testsuite/g++.dg/torture/pr39417.C
index b7bbb88b784..84d497a1c21 100644
--- a/gcc/testsuite/g++.dg/torture/pr39417.C
+++ b/gcc/testsuite/g++.dg/torture/pr39417.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 #include <vector>
 
diff --git a/gcc/testsuite/g++.dg/torture/pr44972.C b/gcc/testsuite/g++.dg/torture/pr44972.C
index e409148da1c..1ace4d9f6b2 100644
--- a/gcc/testsuite/g++.dg/torture/pr44972.C
+++ b/gcc/testsuite/g++.dg/torture/pr44972.C
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } } */
 
 #include<cassert>
 #include<new>
diff --git a/gcc/testsuite/g++.dg/torture/pr46364.C b/gcc/testsuite/g++.dg/torture/pr46364.C
index 40fd2f0760f..d822278df57 100644
--- a/gcc/testsuite/g++.dg/torture/pr46364.C
+++ b/gcc/testsuite/g++.dg/torture/pr46364.C
@@ -1,4 +1,5 @@
 // { dg-do compile }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 #include <string>
 
 void a()
diff --git a/gcc/testsuite/g++.dg/torture/pr49628.C b/gcc/testsuite/g++.dg/torture/pr49628.C
index 4bc6543a35e..0f4e1e6c151 100644
--- a/gcc/testsuite/g++.dg/torture/pr49628.C
+++ b/gcc/testsuite/g++.dg/torture/pr49628.C
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } } */
 
 #include <vector>
 
diff --git a/gcc/testsuite/g++.dg/torture/pr49938.C b/gcc/testsuite/g++.dg/torture/pr49938.C
index d2c73e73871..fbb74e7b559 100644
--- a/gcc/testsuite/g++.dg/torture/pr49938.C
+++ b/gcc/testsuite/g++.dg/torture/pr49938.C
@@ -1,3 +1,4 @@
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 #include <vector>
 #include <cstdlib>
 typedef unsigned short uint16;
diff --git a/gcc/testsuite/g++.dg/torture/pr51903.C b/gcc/testsuite/g++.dg/torture/pr51903.C
index 925021b7e4b..36cc52e46fb 100644
--- a/gcc/testsuite/g++.dg/torture/pr51903.C
+++ b/gcc/testsuite/g++.dg/torture/pr51903.C
@@ -1,5 +1,6 @@
 // { dg-do compile }
 // { dg-options "-O2 -fnon-call-exceptions -fno-guess-branch-probability" }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 #include <vector>
 
diff --git a/gcc/testsuite/g++.dg/torture/pr54498.C b/gcc/testsuite/g++.dg/torture/pr54498.C
index 74651f9063a..5d1e275dfcb 100644
--- a/gcc/testsuite/g++.dg/torture/pr54498.C
+++ b/gcc/testsuite/g++.dg/torture/pr54498.C
@@ -1,5 +1,6 @@
 // { dg-do run }
 // { dg-additional-options "-fno-tree-sra" }
+// { dg-skip-if "requires hosted libstdc++ for complex" { ! hostedlib } }
 
 #include <complex>
 
diff --git a/gcc/testsuite/g++.dg/torture/pr60750.C b/gcc/testsuite/g++.dg/torture/pr60750.C
index a344bd764a3..c53189a28fd 100644
--- a/gcc/testsuite/g++.dg/torture/pr60750.C
+++ b/gcc/testsuite/g++.dg/torture/pr60750.C
@@ -1,5 +1,6 @@
 // { dg-do run }
 // { dg-options "-std=c++11" }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <string>
 #include <stdexcept>
diff --git a/gcc/testsuite/g++.dg/torture/pr67600.C b/gcc/testsuite/g++.dg/torture/pr67600.C
index 0206cae186c..375654cd4e0 100644
--- a/gcc/testsuite/g++.dg/torture/pr67600.C
+++ b/gcc/testsuite/g++.dg/torture/pr67600.C
@@ -1,4 +1,5 @@
 // { dg-do run }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 
 #include <iostream>
 #include <sstream>
diff --git a/gcc/testsuite/g++.dg/torture/pr82084.C b/gcc/testsuite/g++.dg/torture/pr82084.C
index 416684d2cb8..1fbb4f01cfe 100644
--- a/gcc/testsuite/g++.dg/torture/pr82084.C
+++ b/gcc/testsuite/g++.dg/torture/pr82084.C
@@ -1,4 +1,5 @@
 // { dg-do compile }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <string>
 int main()
diff --git a/gcc/testsuite/g++.dg/torture/pr95493-1.C b/gcc/testsuite/g++.dg/torture/pr95493-1.C
index 907d191ebfe..57765dd8d8a 100644
--- a/gcc/testsuite/g++.dg/torture/pr95493-1.C
+++ b/gcc/testsuite/g++.dg/torture/pr95493-1.C
@@ -1,4 +1,5 @@
 // { dg-do run { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // PR rtl-optimization/95493 comment 8
 
 #include <array>
diff --git a/gcc/testsuite/g++.dg/tree-ssa/allocator-opt1.C b/gcc/testsuite/g++.dg/tree-ssa/allocator-opt1.C
index 51c470dee37..37b228eff9b 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/allocator-opt1.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/allocator-opt1.C
@@ -1,5 +1,6 @@
 // PR c++/105838
 // { dg-additional-options -fdump-tree-gimple }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 // Check that there's only one allocator (temporary) variable.
 // Currently the dump doesn't print the allocator template arg in this context.
diff --git a/gcc/testsuite/g++.dg/tree-ssa/empty-loop.C b/gcc/testsuite/g++.dg/tree-ssa/empty-loop.C
index dca7868f3c9..ed4a603bf5b 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/empty-loop.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/empty-loop.C
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fdump-tree-cddce2 -ffinite-loops -Wno-unused-result" } */
+/* { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } } */
 
 #include <string>
 #include <vector>
diff --git a/gcc/testsuite/g++.dg/tree-ssa/initlist-opt1.C b/gcc/testsuite/g++.dg/tree-ssa/initlist-opt1.C
index b1d2d25faf4..89abdd90a82 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/initlist-opt1.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/initlist-opt1.C
@@ -1,6 +1,7 @@
 // PR c++/105838
 // { dg-additional-options -fdump-tree-gimple }
 // { dg-do compile { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 // Test that we do range-initialization from const char *.
 // { dg-final { scan-tree-dump {_M_range_initialize<const char\* const\*>} "gimple" } }
diff --git a/gcc/testsuite/g++.dg/tree-ssa/initlist-opt2.C b/gcc/testsuite/g++.dg/tree-ssa/initlist-opt2.C
index 1e9ac739b2d..8080e9fbfbd 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/initlist-opt2.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/initlist-opt2.C
@@ -1,6 +1,7 @@
 // PR c++/105838
 // { dg-additional-options -fdump-tree-gimple }
 // { dg-do compile { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 // Test that we do range-initialization from const char *.
 // { dg-final { scan-tree-dump {_M_range_initialize<const char\* const\*>} "gimple" } }
diff --git a/gcc/testsuite/g++.dg/tree-ssa/initlist-opt3.C b/gcc/testsuite/g++.dg/tree-ssa/initlist-opt3.C
index c750b99eeca..65ce086bfd5 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/initlist-opt3.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/initlist-opt3.C
@@ -1,5 +1,6 @@
 // PR c++/108266
 // { dg-do compile { target c++11 } }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 #include <initializer_list>
 #include <vector>
diff --git a/gcc/testsuite/g++.dg/tree-ssa/loop-cond-split-1.C b/gcc/testsuite/g++.dg/tree-ssa/loop-cond-split-1.C
index 0d679cb9035..08329144e8f 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/loop-cond-split-1.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/loop-cond-split-1.C
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O3 -fdump-tree-lsplit-details" } */
+/* { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } } */
 
 #include <string>
 #include <map>
diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr101839.C b/gcc/testsuite/g++.dg/tree-ssa/pr101839.C
index bb7b61cad43..3a81c8d6364 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/pr101839.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/pr101839.C
@@ -1,6 +1,7 @@
 // { dg-do run }                                                            
 // { dg-options "-O2 -fdump-tree-optimized" }                                   
 // { dg-require-effective-target c++11 }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 
 #include <string.h>
 #include <iostream>
diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr104529.C b/gcc/testsuite/g++.dg/tree-ssa/pr104529.C
index 3cb3853c22a..f7dd30ca311 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/pr104529.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/pr104529.C
@@ -2,6 +2,7 @@
 // { dg-do compile { target c++11 } }
 // { dg-options "-O2 -fdump-tree-optimized" }
 // { dg-final { scan-tree-dump-not "MEM\[^\n\r]*MEM" "optimized" } }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 #include <cstddef>
 #include <vector>
diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr14703.C b/gcc/testsuite/g++.dg/tree-ssa/pr14703.C
index cf821a58aed..3e5484ec73d 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/pr14703.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/pr14703.C
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -fdump-tree-optimized -fno-ipa-reference" } */
+/* { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } } */
 #include <iostream>
 
 namespace {
diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr19786.C b/gcc/testsuite/g++.dg/tree-ssa/pr19786.C
index faaecdfd971..5f0ca468564 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/pr19786.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/pr19786.C
@@ -1,5 +1,6 @@
 // { dg-do run }
 /* { dg-options "-O2" } */
+/* { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } } */
 
 // We used to get alias grouping wrong on this one, hoisting accesses
 // to the vector's end out of the loop.
diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr46228.C b/gcc/testsuite/g++.dg/tree-ssa/pr46228.C
index 1178eb7038e..c4dab1aa710 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/pr46228.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/pr46228.C
@@ -1,4 +1,5 @@
 // { dg-options "-fdump-tree-optimized -Os" }
+// { dg-skip-if "requires hosted libstdc++ for set" { ! hostedlib } }
 #include <set>
 #include <stdio.h>
 
diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr63841.C b/gcc/testsuite/g++.dg/tree-ssa/pr63841.C
index 2a2c78f9fb2..cd883f1b4f4 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/pr63841.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/pr63841.C
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-O2" } */
+/* { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } } */
 
 #include <string>
 
diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr69336.C b/gcc/testsuite/g++.dg/tree-ssa/pr69336.C
index c946176bfda..39d58e0da7b 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/pr69336.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/pr69336.C
@@ -1,5 +1,6 @@
 // { dg-do compile }
 // { dg-options "-O3 -fdump-tree-optimized -std=c++14" }
+// { dg-skip-if "requires hosted libstdc++ for stdexcept" { ! hostedlib } }
 
 #include <array>
 #include <utility>
diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr78847.C b/gcc/testsuite/g++.dg/tree-ssa/pr78847.C
index e72e516d8d4..f8babd362a5 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/pr78847.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/pr78847.C
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target c++14 } */
 /* { dg-options "-O3 -fdump-tree-ldist-optimized" } */
+/* { dg-skip-if "requires hosted libstdc++ for cstring" { ! hostedlib } } */
 
 #include <stddef.h>
 #include <cstring>
diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr95638.C b/gcc/testsuite/g++.dg/tree-ssa/pr95638.C
index d1bea6dffaa..0dcc3fdd932 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/pr95638.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/pr95638.C
@@ -1,6 +1,7 @@
 // PR tree-optimization/95638
 // { dg-do run }
 // { dg-options "-O2 -std=c++14" }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 
 #include <cassert>
 #include <cstdio>
diff --git a/gcc/testsuite/g++.dg/warn/Warray-bounds-27.C b/gcc/testsuite/g++.dg/warn/Warray-bounds-27.C
index 06ce089c4b0..269999a1f91 100644
--- a/gcc/testsuite/g++.dg/warn/Warray-bounds-27.C
+++ b/gcc/testsuite/g++.dg/warn/Warray-bounds-27.C
@@ -2,6 +2,7 @@
 // { dg-do compile }
 // { dg-require-effective-target c++11 }
 // { dg-options "-O2 -Warray-bounds" }
+// { dg-skip-if "requires hosted libstdc++ for cstring" { ! hostedlib } }
 
 #include <array>
 #include <cstring>
diff --git a/gcc/testsuite/g++.dg/warn/Wdangling-pointer-pr110055.C b/gcc/testsuite/g++.dg/warn/Wdangling-pointer-pr110055.C
index 77dbbf380b6..b2df01e7d51 100644
--- a/gcc/testsuite/g++.dg/warn/Wdangling-pointer-pr110055.C
+++ b/gcc/testsuite/g++.dg/warn/Wdangling-pointer-pr110055.C
@@ -1,6 +1,7 @@
 // { dg-do compile }
 // { dg-require-effective-target c++11 }
 // { dg-options "-O3 -fno-exceptions -Wdangling-pointer" }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 #include <cstdint>
 #include <vector>
diff --git a/gcc/testsuite/g++.dg/warn/Wdangling-reference10.C b/gcc/testsuite/g++.dg/warn/Wdangling-reference10.C
index 733fb8cce63..cc92e6b66e3 100644
--- a/gcc/testsuite/g++.dg/warn/Wdangling-reference10.C
+++ b/gcc/testsuite/g++.dg/warn/Wdangling-reference10.C
@@ -1,6 +1,7 @@
 // PR c++/107532
 // { dg-do compile { target c++20 } }
 // { dg-options "-Wdangling-reference" }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 #include <span>
 #include <vector>
diff --git a/gcc/testsuite/g++.dg/warn/Wdangling-reference4.C b/gcc/testsuite/g++.dg/warn/Wdangling-reference4.C
index aee7a29019b..0343bcf226b 100644
--- a/gcc/testsuite/g++.dg/warn/Wdangling-reference4.C
+++ b/gcc/testsuite/g++.dg/warn/Wdangling-reference4.C
@@ -1,5 +1,6 @@
 // { dg-do compile { target c++17 } }
 // { dg-options "-Wdangling-reference" }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 // Check that we warn here even without -Wsystem-headers.
 
 #include <optional>
diff --git a/gcc/testsuite/g++.dg/warn/Wdangling-reference5.C b/gcc/testsuite/g++.dg/warn/Wdangling-reference5.C
index 59b5538aee5..5e9da1e5bf1 100644
--- a/gcc/testsuite/g++.dg/warn/Wdangling-reference5.C
+++ b/gcc/testsuite/g++.dg/warn/Wdangling-reference5.C
@@ -1,6 +1,7 @@
 // PR c++/107488
 // { dg-do compile }
 // { dg-options "-Wdangling-reference" }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 #include <vector>
 
diff --git a/gcc/testsuite/g++.dg/warn/Wfree-nonheap-object-3.C b/gcc/testsuite/g++.dg/warn/Wfree-nonheap-object-3.C
index 47f97dcb636..9d8958599ab 100644
--- a/gcc/testsuite/g++.dg/warn/Wfree-nonheap-object-3.C
+++ b/gcc/testsuite/g++.dg/warn/Wfree-nonheap-object-3.C
@@ -2,7 +2,8 @@
    Verify that even without -Wsystem-headers the warning is issued
    for pairs of library functions defined in system headers.
    { dg-do compile { target c++11 } }
-   { dg-options "-O2 -Wall" } */
+   { dg-options "-O2 -Wall" }
+   { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } } */
 
 #include <memory>
 #include <string>
diff --git a/gcc/testsuite/g++.dg/warn/Winline-3.C b/gcc/testsuite/g++.dg/warn/Winline-3.C
index 1c226d1b4a0..0b318a9da67 100644
--- a/gcc/testsuite/g++.dg/warn/Winline-3.C
+++ b/gcc/testsuite/g++.dg/warn/Winline-3.C
@@ -1,4 +1,5 @@
 // { dg-options "-Winline -O" }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 #include <vector>
 
diff --git a/gcc/testsuite/g++.dg/warn/Wmemset-elt-size1.C b/gcc/testsuite/g++.dg/warn/Wmemset-elt-size1.C
index e4d3232063d..1eb29e03088 100644
--- a/gcc/testsuite/g++.dg/warn/Wmemset-elt-size1.C
+++ b/gcc/testsuite/g++.dg/warn/Wmemset-elt-size1.C
@@ -1,5 +1,6 @@
 // PR c++/85710
 // { dg-additional-options -Wmemset-elt-size }
+// { dg-skip-if "requires hosted libstdc++ for cstring" { ! hostedlib } }
 
 #include <cstring>
 
diff --git a/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-bogus-escape-2.C b/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-bogus-escape-2.C
index 29414e00e36..9cb344cdac7 100644
--- a/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-bogus-escape-2.C
+++ b/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-bogus-escape-2.C
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -Wstrict-aliasing" } */
+/* { dg-skip-if "requires hosted libstdc++ for list" { ! hostedlib } } */
 
 #include<list>
 
diff --git a/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-bogus-escape.C b/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-bogus-escape.C
index 9ea61987705..9d4f827c439 100644
--- a/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-bogus-escape.C
+++ b/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-bogus-escape.C
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -Wstrict-aliasing" } */
+/* { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } } */
 
 #include <string>
 #include <list>
diff --git a/gcc/testsuite/g++.dg/warn/Wstringop-overflow-6.C b/gcc/testsuite/g++.dg/warn/Wstringop-overflow-6.C
index 8173e601d4b..51238dc6297 100644
--- a/gcc/testsuite/g++.dg/warn/Wstringop-overflow-6.C
+++ b/gcc/testsuite/g++.dg/warn/Wstringop-overflow-6.C
@@ -1,7 +1,8 @@
 /* PR middle-end/97595 - bogus -Wstringop-overflow due to DECL_SIZE_UNIT
    underreporting field size
    { dg-do compile { target c++11 } }
-   { dg-options "-O2 -Wall -Wsystem-headers" } */
+   { dg-options "-O2 -Wall -Wsystem-headers" }
+   { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } } */
 
 #include <iostream>
 
diff --git a/gcc/testsuite/g++.dg/warn/Wstringop-overflow-8.C b/gcc/testsuite/g++.dg/warn/Wstringop-overflow-8.C
index d0ef5e73f93..7666fa388ac 100644
--- a/gcc/testsuite/g++.dg/warn/Wstringop-overflow-8.C
+++ b/gcc/testsuite/g++.dg/warn/Wstringop-overflow-8.C
@@ -1,5 +1,6 @@
 // PR c++/103534
 // { dg-additional-options "-O -Wall" }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <string>
 
diff --git a/gcc/testsuite/g++.dg/warn/Wstringop-overread-1.C b/gcc/testsuite/g++.dg/warn/Wstringop-overread-1.C
index f7ba61783da..65874be855d 100644
--- a/gcc/testsuite/g++.dg/warn/Wstringop-overread-1.C
+++ b/gcc/testsuite/g++.dg/warn/Wstringop-overread-1.C
@@ -1,6 +1,7 @@
 // PR middle-end/98994
 // { dg-do compile }
 // { dg-additional-options "-Wstringop-overread -O2" }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <string>
 
diff --git a/gcc/testsuite/g++.dg/warn/Wuninitialized-33.C b/gcc/testsuite/g++.dg/warn/Wuninitialized-33.C
index 1bb0639ee30..41232c083c1 100644
--- a/gcc/testsuite/g++.dg/warn/Wuninitialized-33.C
+++ b/gcc/testsuite/g++.dg/warn/Wuninitialized-33.C
@@ -2,6 +2,7 @@
 // { dg-do compile }
 // { dg-require-effective-target c++17 }
 // { dg-options "-O2 -Wall" }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <algorithm>
 #include <memory>
diff --git a/gcc/testsuite/g++.dg/warn/format1.C b/gcc/testsuite/g++.dg/warn/format1.C
index 27bc414b098..fec23e62525 100644
--- a/gcc/testsuite/g++.dg/warn/format1.C
+++ b/gcc/testsuite/g++.dg/warn/format1.C
@@ -2,6 +2,7 @@
 // Origin: Joseph Myers <jsm28@cam.ac.uk>.
 // { dg-do compile }
 // { dg-options "-ansi -pedantic -Wformat" }
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 
 #include <cstdio>
 
diff --git a/gcc/testsuite/g++.dg/warn/noreturn-1.C b/gcc/testsuite/g++.dg/warn/noreturn-1.C
index 17375d42eb7..2a3dbcd97f9 100644
--- a/gcc/testsuite/g++.dg/warn/noreturn-1.C
+++ b/gcc/testsuite/g++.dg/warn/noreturn-1.C
@@ -2,6 +2,7 @@
 // Origin: Kaveh Ghazi <ghazi@caip.rutgers.edu> 2002-06-18.
 // { dg-do compile }
 // { dg-options "-Wall -O2" }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib abort" { ! hostedlib } }
 
 #include <cstdlib>
 
diff --git a/gcc/testsuite/g++.dg/warn/string1.C b/gcc/testsuite/g++.dg/warn/string1.C
index 9eb5fb696be..c162bdf4866 100644
--- a/gcc/testsuite/g++.dg/warn/string1.C
+++ b/gcc/testsuite/g++.dg/warn/string1.C
@@ -1,5 +1,6 @@
 // PR c++/35652
 // { dg-options "-O -Wall" }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <string>
 int test() {
diff --git a/gcc/testsuite/g++.dg/warn/uninit-pr105562.C b/gcc/testsuite/g++.dg/warn/uninit-pr105562.C
index ec3a5503c80..63a53b46ec0 100644
--- a/gcc/testsuite/g++.dg/warn/uninit-pr105562.C
+++ b/gcc/testsuite/g++.dg/warn/uninit-pr105562.C
@@ -1,5 +1,6 @@
 // { dg-require-effective-target c++11 }
 // { dg-options "-O -Wall -fno-strict-aliasing" }
+// { dg-skip-if "requires hosted libstdc++ for regex" { ! hostedlib } }
 
 #include <regex>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/15071.C b/gcc/testsuite/g++.old-deja/g++.benjamin/15071.C
index d05f48f5001..f9a7ad5b0f0 100644
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/15071.C
+++ b/gcc/testsuite/g++.old-deja/g++.benjamin/15071.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // 981203 bkoz
 // g++/15071
 // gcc invocation fails to link in libstdc++
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/copy9.C b/gcc/testsuite/g++.old-deja/g++.brendan/copy9.C
index 79339c13de9..1294e6c5870 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/copy9.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/copy9.C
@@ -1,5 +1,6 @@
 // { dg-do run  }
 // { dg-additional-options "-fexcess-precision=fast" }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed copy-ctors
 #include <iostream>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash15.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash15.C
index 3c59fa64b43..a6acd0aacf3 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash15.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/crash15.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed old-abort
 #include <iostream>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash20.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash20.C
index 93dc58cb150..116d11827eb 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash20.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/crash20.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for complex" { ! hostedlib } }
 // GROUPS passed old-abort
 #include <complex>
 typedef std::complex<double> Complex;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash30.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash30.C
index 937cb10293b..ee7a1ffff46 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash30.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/crash30.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 // GROUPS passed old-abort
 #include <string>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash38.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash38.C
index 80ef47180a9..bdcd1108ce1 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash38.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/crash38.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed old-abort
 /*
    I received the following message when using g++ (version 2.3.3):
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash39.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash39.C
index 392c0a0091f..fda212a12be 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash39.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/crash39.C
@@ -1,5 +1,6 @@
 // { dg-do assemble  }
 // { dg-options "-w" }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 // GROUPS passed old-abort
 //#include <GetOpt.h>
 #include <stdio.h>
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash49.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash49.C
index e0664da28dd..0b3978161a6 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash49.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/crash49.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed old-abort
 #include<iostream>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash52.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash52.C
index 1318ea6e9fe..be46b71a9c7 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash52.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/crash52.C
@@ -1,5 +1,6 @@
 // { dg-do assemble  }
 // { dg-options "-Wreturn-type" }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed old-abort
 #include <iostream>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash62.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash62.C
index 7147c9a8e6e..52531e6dc2c 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash62.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/crash62.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed old-abort
 #include <iostream>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/cvt1.C b/gcc/testsuite/g++.old-deja/g++.brendan/cvt1.C
index f67602d29d9..a33aa6c7592 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/cvt1.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/cvt1.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed conversions
 #include <iostream>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg3.C b/gcc/testsuite/g++.old-deja/g++.brendan/err-msg3.C
index 724c6f5c320..9b1da17e3df 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg3.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/err-msg3.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for fstream" { ! hostedlib } }
 // GROUPS passed error-messages
 #include <fstream>
 #include <iomanip>
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/nest21.C b/gcc/testsuite/g++.old-deja/g++.brendan/nest21.C
index 62ddab15600..a43d179ae1b 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/nest21.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/nest21.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed nested-classes
 #include <iostream>
 #include <cstdio>
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/ptolemy2.C b/gcc/testsuite/g++.old-deja/g++.brendan/ptolemy2.C
index 669bd791421..72e04f1d26b 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/ptolemy2.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/ptolemy2.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed ptolemy-bugs
 #include <iostream>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template24.C b/gcc/testsuite/g++.old-deja/g++.jason/template24.C
index 0efce9ff12e..09fdc2e644e 100644
--- a/gcc/testsuite/g++.old-deja/g++.jason/template24.C
+++ b/gcc/testsuite/g++.old-deja/g++.jason/template24.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // Bug: g++ doesn't find the conversion from ostream_withassign to ostream.
 
 #include <iostream>
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template31.C b/gcc/testsuite/g++.old-deja/g++.jason/template31.C
index 81d696f2f09..45b0e6e8b7e 100644
--- a/gcc/testsuite/g++.old-deja/g++.jason/template31.C
+++ b/gcc/testsuite/g++.old-deja/g++.jason/template31.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // PRMS Id: 8569
 
 #include <iostream>
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/typeid1.C b/gcc/testsuite/g++.old-deja/g++.jason/typeid1.C
index ec5156e0cd0..9eb3c92f408 100644
--- a/gcc/testsuite/g++.old-deja/g++.jason/typeid1.C
+++ b/gcc/testsuite/g++.old-deja/g++.jason/typeid1.C
@@ -1,4 +1,5 @@
 // { dg-do compile }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 #include <typeinfo>
 #include <iostream>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.law/arg1.C b/gcc/testsuite/g++.old-deja/g++.law/arg1.C
index 2a87633d10a..ea7191787be 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/arg1.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/arg1.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed arg-matching
 // arg-matching file
 // Subject: argument matching depending on the def order
diff --git a/gcc/testsuite/g++.old-deja/g++.law/arg8.C b/gcc/testsuite/g++.old-deja/g++.law/arg8.C
index 1aba05fb2e1..6e8a467c945 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/arg8.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/arg8.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed arg-matching
 // arg-matching file
 // Message-Id: <9307081747.AA14030@tnt>
diff --git a/gcc/testsuite/g++.old-deja/g++.law/arm12.C b/gcc/testsuite/g++.old-deja/g++.law/arm12.C
index 866b47ada44..7866296aa30 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/arm12.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/arm12.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed ARM-compliance
 // arm file
 // From: belley@cae.ca (Benoit Belley 3218)
diff --git a/gcc/testsuite/g++.old-deja/g++.law/arm9.C b/gcc/testsuite/g++.old-deja/g++.law/arm9.C
index ab18189dde3..c0e5efcacba 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/arm9.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/arm9.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed ARM-compliance
 #include        <iostream>
 enum f1 {
diff --git a/gcc/testsuite/g++.old-deja/g++.law/bad-error7.C b/gcc/testsuite/g++.old-deja/g++.law/bad-error7.C
index 4c07d431524..dc3bc756968 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/bad-error7.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/bad-error7.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed bad-errors
 #include <iostream>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.law/code-gen5.C b/gcc/testsuite/g++.old-deja/g++.law/code-gen5.C
index 0a992d0b9e8..aadded80a8d 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/code-gen5.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/code-gen5.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 // GROUPS passed code-generation
 // code-gen file
 // From: "David" <norman@pi14.arc.umn.edu>
diff --git a/gcc/testsuite/g++.old-deja/g++.law/ctors10.C b/gcc/testsuite/g++.old-deja/g++.law/ctors10.C
index cbf36cff55f..d131a8c9ae0 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/ctors10.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/ctors10.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed constructors
 // ctor file
 // Message-Id: <9302052351.AA10789@harvey>
diff --git a/gcc/testsuite/g++.old-deja/g++.law/ctors12.C b/gcc/testsuite/g++.old-deja/g++.law/ctors12.C
index adc5128ea7c..bc5bf77e0b5 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/ctors12.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/ctors12.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 // GROUPS passed constructors
 #include <cstdio>
 #include <cstdlib>
diff --git a/gcc/testsuite/g++.old-deja/g++.law/ctors13.C b/gcc/testsuite/g++.old-deja/g++.law/ctors13.C
index 82f70f35f06..f12972743bb 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/ctors13.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/ctors13.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed constructors
 #include <iostream>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.law/ctors17.C b/gcc/testsuite/g++.old-deja/g++.law/ctors17.C
index 0d61c49abd7..e91045874e9 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/ctors17.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/ctors17.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for fstream" { ! hostedlib } }
 // GROUPS passed constructors
 // ctor file
 // Message-Id: <199306151813.gD28471@mail.Germany.EU.net>
diff --git a/gcc/testsuite/g++.old-deja/g++.law/ctors6.C b/gcc/testsuite/g++.old-deja/g++.law/ctors6.C
index ee26cb5020f..9c6de0bfe50 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/ctors6.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/ctors6.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for complex" { ! hostedlib } }
 // GROUPS passed constructors
 #include <complex>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.law/cvt16.C b/gcc/testsuite/g++.old-deja/g++.law/cvt16.C
index 0c821b58966..9f88a6e5785 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/cvt16.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/cvt16.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed conversions
 // cvt file
 // Message-Id: <9304121647.AA25819@tnt>
diff --git a/gcc/testsuite/g++.old-deja/g++.law/cvt2.C b/gcc/testsuite/g++.old-deja/g++.law/cvt2.C
index afe138bd969..77b000e31fc 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/cvt2.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/cvt2.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 // GROUPS passed conversions
 #include <cstdio>
 #include <cstdlib>
diff --git a/gcc/testsuite/g++.old-deja/g++.law/cvt7.C b/gcc/testsuite/g++.old-deja/g++.law/cvt7.C
index e68adf02106..bf68a0f3d69 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/cvt7.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/cvt7.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 // GROUPS passed conversions
 // cvt file
 // From: krste@icsi.berkeley.edu (Krste Asanovic)
diff --git a/gcc/testsuite/g++.old-deja/g++.law/except5.C b/gcc/testsuite/g++.old-deja/g++.law/except5.C
index a99ad8a4833..7a4ad287907 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/except5.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/except5.C
@@ -1,5 +1,6 @@
 // { dg-do assemble  }
 // { dg-options "-fexceptions" }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed exceptions
 // except file
 // Message-Id: <199311101607.AA11803@hsi86.hsi.com>
diff --git a/gcc/testsuite/g++.old-deja/g++.law/missed-error2.C b/gcc/testsuite/g++.old-deja/g++.law/missed-error2.C
index 7ae494b75da..a42cf6aab98 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/missed-error2.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/missed-error2.C
@@ -1,5 +1,6 @@
 // { dg-do assemble  }
 // { dg-additional-options -fpermissive }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed missed-error
 // missed-error file
 // From: ndc!don@csvax.cs.caltech.edu (Don Erway)
diff --git a/gcc/testsuite/g++.old-deja/g++.law/nest3.C b/gcc/testsuite/g++.old-deja/g++.law/nest3.C
index daeaa201bd5..fdac0ece2be 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/nest3.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/nest3.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed nest
 #include <iostream>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.law/operators32.C b/gcc/testsuite/g++.old-deja/g++.law/operators32.C
index 991e38ddbc4..577c52ca812 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/operators32.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/operators32.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed operators
 #include <iostream>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.law/operators4.C b/gcc/testsuite/g++.old-deja/g++.law/operators4.C
index fc623b4fc26..dda42aafd08 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/operators4.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/operators4.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for complex" { ! hostedlib } }
 // GROUPS passed operators
 // opr-del file
 // From: rollins@bart.ee.queensu.ca (Mark Rollins)
diff --git a/gcc/testsuite/g++.old-deja/g++.law/vbase1.C b/gcc/testsuite/g++.old-deja/g++.law/vbase1.C
index 4cfe51d7740..077d6b21e96 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/vbase1.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/vbase1.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed vbase
 // vbase file
 // From: pino@hubble.eecs.berkeley.edu (Jose Luis Pino)
diff --git a/gcc/testsuite/g++.old-deja/g++.law/virtual3.C b/gcc/testsuite/g++.old-deja/g++.law/virtual3.C
index 46fa08512be..a1a105ec81c 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/virtual3.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/virtual3.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed virtual-functions
 // virtual file
 // From: allan@ramjet.multinet.DE (Allan Brighton)
diff --git a/gcc/testsuite/g++.old-deja/g++.law/visibility1.C b/gcc/testsuite/g++.old-deja/g++.law/visibility1.C
index 1c786feb9d1..ab5baf70c79 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/visibility1.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/visibility1.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed visibility
 #include <iostream>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.law/visibility10.C b/gcc/testsuite/g++.old-deja/g++.law/visibility10.C
index 7abb4a85d7c..4eb5615df73 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/visibility10.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/visibility10.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed visibility
 
 #include <iostream>
diff --git a/gcc/testsuite/g++.old-deja/g++.law/visibility13.C b/gcc/testsuite/g++.old-deja/g++.law/visibility13.C
index 451ef1afaf8..9644c085fd1 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/visibility13.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/visibility13.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed visibility
 // visibility file
 // From: dinh@cs.ucla.edu (Dinh Le)
diff --git a/gcc/testsuite/g++.old-deja/g++.law/visibility17.C b/gcc/testsuite/g++.old-deja/g++.law/visibility17.C
index bf7a747c705..501855a4ba7 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/visibility17.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/visibility17.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed visibility
 // visibility file
 // From: Sandeep Shroff <ss@caere.com>
diff --git a/gcc/testsuite/g++.old-deja/g++.law/visibility2.C b/gcc/testsuite/g++.old-deja/g++.law/visibility2.C
index 539169639c3..c926ef518d5 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/visibility2.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/visibility2.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed visibility
 #include <iostream>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.law/visibility22.C b/gcc/testsuite/g++.old-deja/g++.law/visibility22.C
index e3d9d1f6d00..2088432494d 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/visibility22.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/visibility22.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed visibility
 // visibility file
 // From: Robert Carden <carden@thoth.ics.uci.edu>
diff --git a/gcc/testsuite/g++.old-deja/g++.law/visibility25.C b/gcc/testsuite/g++.old-deja/g++.law/visibility25.C
index 167436d0068..91931b0769b 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/visibility25.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/visibility25.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed visibility
 // visibility file
 // From: gfm@mencon.mencon.oz.au (Graham Menhennitt)
diff --git a/gcc/testsuite/g++.old-deja/g++.law/visibility7.C b/gcc/testsuite/g++.old-deja/g++.law/visibility7.C
index 33358b12b51..db65523fbc7 100644
--- a/gcc/testsuite/g++.old-deja/g++.law/visibility7.C
+++ b/gcc/testsuite/g++.old-deja/g++.law/visibility7.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // GROUPS passed visibility
 // visibility file
 // From: Gordon Joly <G.Joly@cs.ucl.ac.uk>
diff --git a/gcc/testsuite/g++.old-deja/g++.martin/new1.C b/gcc/testsuite/g++.old-deja/g++.martin/new1.C
index 18eb88d7c79..68a5fd85491 100644
--- a/gcc/testsuite/g++.old-deja/g++.martin/new1.C
+++ b/gcc/testsuite/g++.old-deja/g++.martin/new1.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 //Lifetime of temporaries:
 //egcs 2.92 performs cleanup for temporaries inside new expressions
 //after the new is complete, not at the end of the full expression.
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/dyncast7.C b/gcc/testsuite/g++.old-deja/g++.mike/dyncast7.C
index 33e3fa787b9..2c6d4590fc1 100644
--- a/gcc/testsuite/g++.old-deja/g++.mike/dyncast7.C
+++ b/gcc/testsuite/g++.old-deja/g++.mike/dyncast7.C
@@ -1,5 +1,6 @@
 // { dg-do run  }
 // { dg-options "-fexceptions" }
+// { dg-skip-if "requires hosted libstdc++ for stdexcept" { ! hostedlib } }
 
 #include <typeinfo>
 #include <stdexcept>
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/eh13.C b/gcc/testsuite/g++.old-deja/g++.mike/eh13.C
index e2c7435c5ca..170d7bc8b1a 100644
--- a/gcc/testsuite/g++.old-deja/g++.mike/eh13.C
+++ b/gcc/testsuite/g++.old-deja/g++.mike/eh13.C
@@ -1,5 +1,6 @@
 // { dg-do run { xfail arm-*-pe } }
 // { dg-options "-fexceptions" }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 
 #include <string>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/eh2.C b/gcc/testsuite/g++.old-deja/g++.mike/eh2.C
index 862bd6e7598..1ef7d45807e 100644
--- a/gcc/testsuite/g++.old-deja/g++.mike/eh2.C
+++ b/gcc/testsuite/g++.old-deja/g++.mike/eh2.C
@@ -1,5 +1,6 @@
 // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
 // { dg-options "-fexceptions" }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 
 #include <cstdlib>
 #include <iostream>
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/net34.C b/gcc/testsuite/g++.old-deja/g++.mike/net34.C
index 19a7e16bad2..cb69cfaa0c8 100644
--- a/gcc/testsuite/g++.old-deja/g++.mike/net34.C
+++ b/gcc/testsuite/g++.old-deja/g++.mike/net34.C
@@ -1,5 +1,6 @@
 // { dg-do run  }
 // { dg-options "" }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 
 #include <iostream>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/net46.C b/gcc/testsuite/g++.old-deja/g++.mike/net46.C
index a2362325452..b1dcd189b75 100644
--- a/gcc/testsuite/g++.old-deja/g++.mike/net46.C
+++ b/gcc/testsuite/g++.old-deja/g++.mike/net46.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 #include <iostream>
 #include <cstdlib>
 #include <cstddef>
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p658.C b/gcc/testsuite/g++.old-deja/g++.mike/p658.C
index a6268a36fd7..0f52805478b 100644
--- a/gcc/testsuite/g++.old-deja/g++.mike/p658.C
+++ b/gcc/testsuite/g++.old-deja/g++.mike/p658.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // prms-id: 658
 
 #include <iostream>
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/rtti1.C b/gcc/testsuite/g++.old-deja/g++.mike/rtti1.C
index 19aa3894e8c..795aab90305 100644
--- a/gcc/testsuite/g++.old-deja/g++.mike/rtti1.C
+++ b/gcc/testsuite/g++.old-deja/g++.mike/rtti1.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 
 #include <typeinfo>
 #include <iostream>
diff --git a/gcc/testsuite/g++.old-deja/g++.ns/using4.C b/gcc/testsuite/g++.old-deja/g++.ns/using4.C
index 72332f13e7a..7a3c465781b 100644
--- a/gcc/testsuite/g++.old-deja/g++.ns/using4.C
+++ b/gcc/testsuite/g++.old-deja/g++.ns/using4.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 //Build don't link
 #include <vector>
 namespace csp {
diff --git a/gcc/testsuite/g++.old-deja/g++.ns/using6.C b/gcc/testsuite/g++.old-deja/g++.ns/using6.C
index 68cf2da1157..bb54b803390 100644
--- a/gcc/testsuite/g++.old-deja/g++.ns/using6.C
+++ b/gcc/testsuite/g++.old-deja/g++.ns/using6.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 #include <vector>
 
 namespace csp {
diff --git a/gcc/testsuite/g++.old-deja/g++.other/defarg6.C b/gcc/testsuite/g++.old-deja/g++.other/defarg6.C
index fabf0198000..a2b9fd15026 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/defarg6.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/defarg6.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 // Origin: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
 
 #include <vector>
diff --git a/gcc/testsuite/g++.old-deja/g++.other/headers1.C b/gcc/testsuite/g++.old-deja/g++.other/headers1.C
index 1080fe38c8a..5d37e94082f 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/headers1.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/headers1.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 // Copyright (C) 2000 Free Software Foundation, Inc.
 // Contributed by Loren J. Rittle 07 Jun 2000 <ljrittle@acm.org>
 //
diff --git a/gcc/testsuite/g++.old-deja/g++.other/init9.C b/gcc/testsuite/g++.old-deja/g++.other/init9.C
index 0194cd1b49a..d38f978975e 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/init9.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/init9.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 
 // Based on a testcase submitted by Tudor Hulubei <tudor@cs.unh.edu>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.other/inline14.C b/gcc/testsuite/g++.old-deja/g++.other/inline14.C
index 1bd74b4ac73..473a8f07872 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/inline14.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/inline14.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // Origin: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
 
 #include <iostream>
diff --git a/gcc/testsuite/g++.old-deja/g++.other/inline2.C b/gcc/testsuite/g++.old-deja/g++.other/inline2.C
index f1d19626685..4a9499acd83 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/inline2.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/inline2.C
@@ -1,5 +1,6 @@
 // { dg-do assemble  }
 // { dg-options "-O2 -Winline" }
+// { dg-skip-if "requires hosted libstdc++ for cmath" { ! hostedlib } }
 // Origin: Martin Reinecke <martin@MPA-Garching.MPG.DE>
 
 #include <cmath>
diff --git a/gcc/testsuite/g++.old-deja/g++.other/inline7.C b/gcc/testsuite/g++.old-deja/g++.other/inline7.C
index 626000039c5..410351f11b4 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/inline7.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/inline7.C
@@ -1,5 +1,6 @@
 // { dg-do run  }
 // { dg-options "-O2" }
+// { dg-skip-if "requires hosted libstdc++ for list" { ! hostedlib } }
 // Origin: Mark Mitchell <mark@codesourcery.com>
 
 #include <list>
diff --git a/gcc/testsuite/g++.old-deja/g++.other/inline8.C b/gcc/testsuite/g++.old-deja/g++.other/inline8.C
index c12a8f74a90..d45a359c96c 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/inline8.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/inline8.C
@@ -1,5 +1,6 @@
 // { dg-do run  }
 // { dg-options "-O1" }
+// { dg-skip-if "requires hosted libstdc++ for map" { ! hostedlib } }
 // Origin: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
 
 #include <map>
diff --git a/gcc/testsuite/g++.old-deja/g++.other/optimize2.C b/gcc/testsuite/g++.old-deja/g++.other/optimize2.C
index b34eae05ebd..a16394fd481 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/optimize2.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/optimize2.C
@@ -1,5 +1,6 @@
 // { dg-do run  }
 // { dg-options "-O2" }
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 // 
 // Copyright (C) 2001 Free Software Foundation, Inc.
 // Contributed by Nathan Sidwell 26 May 2001 <nathan@codesourcery.com>
diff --git a/gcc/testsuite/g++.old-deja/g++.other/sibcall1.C b/gcc/testsuite/g++.old-deja/g++.other/sibcall1.C
index fa9e37b378c..ecf2e1bbe2f 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/sibcall1.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/sibcall1.C
@@ -1,5 +1,6 @@
 // { dg-do run  }
 // { dg-options "-O2" }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 
 #include <iostream>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.other/unchanging1.C b/gcc/testsuite/g++.old-deja/g++.other/unchanging1.C
index 6b2999cb95a..6beb513bba9 100644
--- a/gcc/testsuite/g++.old-deja/g++.other/unchanging1.C
+++ b/gcc/testsuite/g++.old-deja/g++.other/unchanging1.C
@@ -1,5 +1,6 @@
 // { dg-do run  }
 // { dg-options "-O2" }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 
 #include <iostream>
 #include <complex>
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash68.C b/gcc/testsuite/g++.old-deja/g++.pt/crash68.C
index 9afeae09aaf..c5ce84f5bff 100644
--- a/gcc/testsuite/g++.old-deja/g++.pt/crash68.C
+++ b/gcc/testsuite/g++.old-deja/g++.pt/crash68.C
@@ -1,5 +1,6 @@
 // { dg-do assemble  }
 // { dg-prune-output "mangled name" }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // 
 // Copyright (C) 2001 Free Software Foundation, Inc.
 // Contributed by Nathan Sidwell 25 Jul 2001 <nathan@codesourcery.com>
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/memtemp100.C b/gcc/testsuite/g++.old-deja/g++.pt/memtemp100.C
index c0495233af8..e498c3b8396 100644
--- a/gcc/testsuite/g++.old-deja/g++.pt/memtemp100.C
+++ b/gcc/testsuite/g++.old-deja/g++.pt/memtemp100.C
@@ -1,5 +1,6 @@
 // { dg-do assemble  }
 // { dg-options "" }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // Origin: philippeb@videotron.ca
 
 #include <iostream>
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb109.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb109.C
index b98e8da6b1e..44e7eac7305 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb109.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb109.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for map" { ! hostedlib } }
 #include<map>
 #include<iostream>
 #include<vector>
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb113.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb113.C
index 9c7ca6bfaed..a5dbfa4f8e5 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb113.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb113.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 #include <iostream>
 
 class X : public std::streambuf
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb115.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb115.C
index e7065b269fe..fe44e06ce20 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb115.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb115.C
@@ -1,5 +1,6 @@
 // { dg-do run  }
 // { dg-options "-O" }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 
 #include <iostream>
 #include <typeinfo>
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb124.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb124.C
index 0be035ae867..728d9c209fb 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb124.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb124.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for stdexcept" { ! hostedlib } }
 #include <stdexcept>
 class X : public std::runtime_error {
   X ();
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb127.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb127.C
index d8d28b36a63..1cd9abbd2da 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb127.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb127.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 // Gets ICE 40.
 
 #include <vector>
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb129.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb129.C
index a8dae01afe2..c42f88a7964 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb129.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb129.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for list" { ! hostedlib } }
 // Gives ICE on EGCS release branch as of 98/06/08 on i686-pc-linux-gnulibc1)
 // From: Klaus-Georg Adams <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>    
 // Message-Id: <199806081358.PAA02505@achibm5.chemie.uni-karlsruhe.de> 
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb129a.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb129a.C
index 3150422e3c5..51ffcbeedc4 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb129a.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb129a.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for list" { ! hostedlib } }
 // Gives ICE on EGCS release branch as of 98/06/08 on i686-pc-linux-gnulibc1)
 // From: Klaus-Georg Adams <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>    
 // Message-Id: <199806081358.PAA02505@achibm5.chemie.uni-karlsruhe.de> 
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb130.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb130.C
index 20175cd9d3f..932f2491109 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb130.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb130.C
@@ -1,5 +1,6 @@
 // { dg-do assemble  }
 // { dg-options "-Wall -Wno-deprecated" }
+// { dg-skip-if "requires hosted libstdc++ for backward/hash_set" { ! hostedlib } }
 // Gives spurious warnings when compiled with -Wall
 // EGCS 06/08/98 i686-pc-linux-gnulibc1
 // Message-Id: <199806081358.PAA02505@achibm5.chemie.uni-karlsruhe.de>
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb132.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb132.C
index e5992aa66cb..b432b2da6b7 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb132.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb132.C
@@ -1,5 +1,6 @@
 // { dg-do assemble  }
 // { dg-options "-O -Wall  -fgcse" }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 // From: Klaus-Georg Adams <Klaus-Georg.Adams@chemie.uni-karlsruhe.de> 
 // Reported against EGCS snaps 98/06/28.
 //
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb15.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb15.C
index 1cb9fd15c83..c1d94498c72 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb15.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb15.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 #include<iostream>
 #include<cstddef>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb21.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb21.C
index a061fc016cf..0c615d49746 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb21.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb21.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 #include <vector>
 
 #include <sstream>
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb24.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb24.C
index 5e2a3ee45b3..0abbce2ed77 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb24.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb24.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 #include <iostream>
 
 template < class T >
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb27.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb27.C
index 0df2e10ae79..054e53179c4 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb27.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb27.C
@@ -1,5 +1,6 @@
 // { dg-do assemble  }
 // { dg-options "-Wno-deprecated -Wno-return-type" }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 /* bug.cc */
 /* simple program to demonstrate the bug with named return values in gcc
 */
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb28.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb28.C
index 89f19d57c99..7f93d76f54f 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb28.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb28.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 #include <vector>
 
 using namespace std;
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb29.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb29.C
index bea0d12e177..c1880c8571e 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb29.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb29.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 #include <vector>
 
 using namespace std;
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb3.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb3.C
index b7487e97ba5..91e7e730a61 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb3.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb3.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for complex" { ! hostedlib } }
 #include <complex>
 template<class T>
 class Vec {
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb30.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb30.C
index e0f290b7f0b..b22d482e2bf 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb30.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb30.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for fstream" { ! hostedlib } }
 #include <fstream>
 
 class bifstream : public std::ifstream {
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb31.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb31.C
index 1e3c8f02d16..49c90679da3 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb31.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb31.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 #include<iostream>
 
 int main() {
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb33.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb33.C
index 50328ad4900..005f9c9bc84 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb33.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb33.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for fstream" { ! hostedlib } }
 #include <fstream>
 #include <cstdio>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb36.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb36.C
index 56e67b30082..0c5ebf9a902 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb36.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb36.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 #include <vector>
 using namespace std;
 
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb39.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb39.C
index 144d3fff7ee..24aa24b037d 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb39.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb39.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for cctype" { ! hostedlib } }
 #include <cctype>
 #include <iostream>
 #include <sstream>
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb4.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb4.C
index 99c2ca979ad..47478413324 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb4.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb4.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // Error: Internal Compiler Error in GCC 2.7.2 and EGCS 1998/05/28 snapshot.
 
 #include <iostream>
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb41.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb41.C
index 9f6ee5f43e0..37422fbd6ec 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb41.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb41.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 #include <iostream>
 #include <iterator>
 #include <string>
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb43.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb43.C
index c54050c3c7a..e4d16c7fb72 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb43.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb43.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 // All the pointer_to_binary_function cases used to fail because g++
 // couldn't handle converting an overloaded function to a class type.
 // The first one should still fail because it requires an implicit conversion
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb44.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb44.C
index b21343c478a..ca8fcc372b2 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb44.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb44.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for cstdio" { ! hostedlib } }
 // spurious 'const' in error.
 // For egcs-2.91.34, the warning message refers to
 // class ostream & operator <<(class ostream &, const class Vector<T> &)
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb46.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb46.C
index cbe482e90b8..7102504a1ae 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb46.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb46.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 #include <iostream>
 
 class A1 {
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb54.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb54.C
index 1e71ca82e6d..de8916770a5 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb54.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb54.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for iomanip" { ! hostedlib } }
 #include <iomanip>
 #include <iostream>
 #include <cstdlib>
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb55.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb55.C
index c1e2400ed9a..2486a0688bb 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb55.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb55.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for sstream" { ! hostedlib } }
 // Since the constructor is in streambuf.h, additional diagnostics are
 // produced, which are not really supported in the old-deja framework
 
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb59.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb59.C
index 84ccff26d16..7fadf9a33a9 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb59.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb59.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 #define INC_FUNCTIONAL  1
 #define USE_STATIC_CAST 1
 
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb60.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb60.C
index ea80a4ce2e1..f81861ecade 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb60.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb60.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for string" { ! hostedlib } }
 #include <string>
 
 class t {
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb62.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb62.C
index bffba04800f..8f6094a1fb1 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb62.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb62.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 #include <vector>
 
 void f(void)
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb66.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb66.C
index 3088593656e..d9dc0a03548 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb66.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb66.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for cassert" { ! hostedlib } }
 #include <cassert>
 #include <iostream>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb7.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb7.C
index 4785305ff53..83fa20db921 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb7.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb7.C
@@ -1,4 +1,5 @@
 // { dg-do assemble  }
+// { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
 #include <vector>
 
 class T
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb73.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb73.C
index bf9cf598d9c..6fcad362422 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb73.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb73.C
@@ -1,5 +1,6 @@
 // { dg-do run  }
 // { dg-options "-O -Wall" }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // Depletes VM.
 
 #include <iostream>
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb77.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb77.C
index 358c186ab91..553fc539eaf 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb77.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb77.C
@@ -1,4 +1,5 @@
 // { dg-do run  }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 #include <iostream>
 #include <sstream>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb79.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb79.C
index 1c1ad3e3067..9597d2e71fa 100644
--- a/gcc/testsuite/g++.old-deja/g++.robertl/eb79.C
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb79.C
@@ -1,5 +1,6 @@
 // { dg-do assemble  }
 // { dg-prune-output "note" }
+// { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
 // Makes bogus x86 assembly code.
 #include <iostream>
 
diff --git a/gcc/testsuite/g++.old-deja/g++.warn/iomanip.C b/gcc/testsuite/g++.old-deja/g++.warn/iomanip.C
index c437b26dbd1..c31d4cfb75c 100644
--- a/gcc/testsuite/g++.old-deja/g++.warn/iomanip.C
+++ b/gcc/testsuite/g++.old-deja/g++.warn/iomanip.C
@@ -1,5 +1,6 @@
 // { dg-do assemble  }
 // { dg-options "-O -Winline" }
+// { dg-skip-if "requires hosted libstdc++ for iomanip" { ! hostedlib } }
 // Bug: g++ wouldn't inline op<< because it was an explicit instantiation.
 // Origin: Jason Merrill <jason@cygnus.com>
 
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 43a040e135c..240a3815d38 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -865,6 +865,24 @@ proc check_effective_target_freestanding { } {
     return 0
 }
 
+# Return 1 if a hosted implementation of libstdc++ is available
+# (i.e. not freestanding).  Language must be c++.
+proc check_effective_target_hostedlib { } {
+    if [check_effective_target_freestanding] {
+        return 0
+    }
+    if [check_effective_target_c++] {
+        return [check_no_compiler_messages hostedlib assembly {
+            #include <bits/c++config.h>
+            #if ! _GLIBCXX_HOSTED
+            #error not hosted
+            #endif
+	    int hosted;
+        }]
+    }
+    return 1
+}
+
 # Check to see that file I/O functions are available.
 proc check_effective_target_fileio { } {
     return [check_no_compiler_messages fileio_available executable {

^ permalink raw reply	[flat|nested] 17+ messages in thread

* [gcc(refs/users/aoliva/heads/testme)] testsuite: introduce hostedlib effective target
@ 2024-09-07  6:16 Alexandre Oliva
  0 siblings, 0 replies; 17+ messages in thread
From: Alexandre Oliva @ 2024-09-07  6:16 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:38cc6007421e09a06834e2cfb7babbda1e74386a

commit 38cc6007421e09a06834e2cfb7babbda1e74386a
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Fri Sep 6 18:50:37 2024 -0300

    testsuite: introduce hostedlib effective target
    
    Several C++ tests fail with --disable-hosted-libstdcxx, whether
    because stdc++exp gets linked in despite not being built, because
    standard headers are included but that are unavailable in this mode,
    or because headers are (mistakenly?) expected to introduce
    declarations such as for abort, malloc, etc, but in this mode they
    don't.
    
    This patch introduces an effective target for GCC test, equivalent to
    one that's available in the libstdc++-v3 testsuite, and arranges for
    all such tests to be skipped when libstdc++-v3 is not hosted.
    
    Co-Authored-By: Olivier Hainque <hainque@adacore.com>
    
    for  gcc/ChangeLog
    
            * doc/sourcebuild.texi (hostedlib): New effective target.
    
    for  gcc/testsuite/ChangeLog
    
            * lib/target-supports.exp (check_effective_target_hostedlib):
            New.
            * g++.dg/contracts/contracts-access1.C: Skip if !hostedlib
            because of libstdc++exp.
            * g++.dg/contracts/contracts-assume3.C: Likewise.
            * g++.dg/contracts/contracts-assume4.C: Likewise.
            * g++.dg/contracts/contracts-config1.C: Likewise.
            * g++.dg/contracts/contracts-constexpr1.C: Likewise.
            * g++.dg/contracts/contracts-deduced2.C: Likewise.
            * g++.dg/contracts/contracts-externC.C: Likewise.
            * g++.dg/contracts/contracts-friend1.C: Likewise.
            * g++.dg/contracts/contracts-multiline1.C: Likewise.
            * g++.dg/contracts/contracts-nested-class2.C: Likewise.
            * g++.dg/contracts/contracts-post2.C: Likewise.
            * g++.dg/contracts/contracts-post3.C: Likewise.
            * g++.dg/contracts/contracts-pre2a2.C: Likewise.
            * g++.dg/contracts/contracts10.C: Likewise.
            * g++.dg/contracts/contracts18.C: Likewise.
            * g++.dg/contracts/contracts19.C: Likewise.
            * g++.dg/contracts/contracts2.C: Likewise.
            * g++.dg/contracts/contracts24.C: Likewise.
            * g++.dg/contracts/contracts25.C: Likewise.
            * g++.dg/contracts/contracts3.C: Likewise.
            * g++.dg/contracts/contracts4.C: Likewise.
            * g++.dg/contracts/contracts5.C: Likewise.
            * g++.dg/contracts/contracts6.C: Likewise.
            * g++.dg/contracts/contracts7.C: Likewise.
            * g++.dg/contracts/contracts9.C: Likewise.
            * c-c++-common/pr36513-2.c: Skip if !hostedlib because of
            unavailable headers.
            * c-c++-common/analyzer/pr93290.c: Likewise.
            * g++.dg/analyzer/pr93212.C: Likewise.
            * g++.dg/analyzer/vfunc-2.C: Likewise.
            * g++.dg/cdce3.C: Likewise.  Adjust line numbers.
            * g++.dg/concepts/expression.C: Likewise.
            * g++.dg/concepts/fn3.C: Likewise.
            * g++.dg/concepts/fn9.C: Likewise.
            * g++.dg/concepts/generic-fn.C: Likewise.
            * g++.dg/concepts/intro2.C: Likewise.
            * g++.dg/contracts/contracts-assume2.C: Likewise.
            * g++.dg/contracts/contracts-ignore2.C: Likewise.
            * g++.dg/contracts/contracts-post7.C: Likewise.
            * g++.dg/contracts/contracts-pre10.C: Likewise.
            * g++.dg/contracts/contracts-pre2.C: Likewise.
            * g++.dg/contracts/contracts-pre3.C: Likewise.
            * g++.dg/contracts/contracts-pre4.C: Likewise.
            * g++.dg/contracts/contracts-pre5.C: Likewise.
            * g++.dg/contracts/contracts-pre7.C: Likewise.
            * g++.dg/contracts/contracts-pre9.C: Likewise.
            * g++.dg/contracts/contracts-redecl3.C: Likewise.
            * g++.dg/contracts/contracts-redecl4.C: Likewise.
            * g++.dg/contracts/contracts-redecl6.C: Likewise.
            * g++.dg/contracts/contracts-redecl7.C: Likewise.
            * g++.dg/contracts/contracts-tmpl-spec1.C: Likewise.
            * g++.dg/contracts/contracts-tmpl-spec2.C: Likewise.
            * g++.dg/contracts/contracts-tmpl-spec3.C: Likewise.
            * g++.dg/contracts/contracts14.C: Likewise.
            * g++.dg/contracts/contracts15.C: Likewise.
            * g++.dg/contracts/contracts16.C: Likewise.
            * g++.dg/contracts/contracts17.C: Likewise.
            * g++.dg/contracts/contracts22.C: Likewise.
            * g++.dg/contracts/contracts35.C: Likewise.
            * g++.dg/coroutines/pr100611.C: Likewise.
            * g++.dg/coroutines/pr100772-b.C: Likewise.
            * g++.dg/coroutines/pr101133.C: Likewise.
            * g++.dg/coroutines/pr101367.C: Likewise.
            * g++.dg/coroutines/pr101976.C: Likewise.
            * g++.dg/coroutines/pr102454.C: Likewise.
            * g++.dg/coroutines/pr104051.C: Likewise.
            * g++.dg/coroutines/pr94288.C: Likewise.
            * g++.dg/coroutines/pr95520.C: Likewise.
            * g++.dg/coroutines/pr95736.C: Likewise.
            * g++.dg/coroutines/pr97587.C: Likewise.
            * g++.dg/coroutines/pr99576_1.C: Likewise.
            * g++.dg/coroutines/pr99576_2.C: Likewise.
            * g++.dg/coroutines/ramp-return-a.C: Likewise.
            * g++.dg/coroutines/ramp-return-b.C: Likewise.
            * g++.dg/coroutines/ramp-return-c.C: Likewise.
            * g++.dg/coroutines/symmetric-transfer-00-basic.C: Likewise.
            * g++.dg/coroutines/torture/co-await-16-template-traits.C:
            Likewise.
            * g++.dg/coroutines/torture/co-ret-15-default-return_void.C:
            Likewise.
            * g++.dg/coroutines/torture/co-yield-04-complex-local-state.C:
            Likewise.
            * g++.dg/coroutines/torture/extern-c-coroutine.C: Likewise.
            * g++.dg/coroutines/torture/func-params-08.C: Likewise.
            * g++.dg/coroutines/torture/func-params-09-awaitable-parms.C:
            Likewise.
            * g++.dg/coroutines/torture/local-var-05-awaitable.C:
            Likewise.
            * g++.dg/coroutines/torture/pr95615-01.C: Likewise.
            * g++.dg/coroutines/torture/pr95615-02.C: Likewise.
            * g++.dg/coroutines/torture/pr95615-03.C: Likewise.
            * g++.dg/coroutines/torture/pr95615-04.C: Likewise.
            * g++.dg/coroutines/torture/pr95615-05.C: Likewise.
            * g++.dg/coroutines/torture/pr98704.C: Likewise.
            * g++.dg/cpp/pr80005.C: Likewise.
            * g++.dg/cpp0x/Wliteral-suffix.C: Likewise.
            * g++.dg/cpp0x/Wpessimizing-move2.C: Likewise.
            * g++.dg/cpp0x/constexpr-70001-3.C: Likewise.
            * g++.dg/cpp0x/constexpr-ice16.C: Likewise.
            * g++.dg/cpp0x/dc5.C: Likewise.
            * g++.dg/cpp0x/enum35.C: Likewise.
            * g++.dg/cpp0x/enum36.C: Likewise.
            * g++.dg/cpp0x/initlist-opt1.C: Likewise.
            * g++.dg/cpp0x/initlist-vect2.C: Likewise.
            * g++.dg/cpp0x/initlist13.C: Likewise.
            * g++.dg/cpp0x/initlist15.C: Likewise.
            * g++.dg/cpp0x/initlist25.C: Likewise.
            * g++.dg/cpp0x/initlist54.C: Likewise.
            * g++.dg/cpp0x/initlist92.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-capture-const-ref-neg.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-capture-const-ref.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-const-neg.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-const.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-deduce.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-in-class-neg.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-in-class.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-mixed.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-mutable.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-nested.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-non-const.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-nop.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-nullptr.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-pass.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-recursive.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-ref-default.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-ref.C: Likewise.
            * g++.dg/cpp0x/nullptr20.C: Likewise.
            * g++.dg/cpp0x/pr61038.C: Likewise.
            * g++.dg/cpp0x/rv-trivial-bug.C: Likewise.
            * g++.dg/cpp0x/udlit-concat-neg.C: Likewise.
            * g++.dg/cpp0x/udlit-concat.C: Likewise.
            * g++.dg/cpp0x/udlit-embed-quote.C: Likewise.
            * g++.dg/cpp0x/udlit-extended-id-1.C: Likewise.
            * g++.dg/cpp0x/udlit-general.C: Likewise.
            * g++.dg/cpp0x/udlit-namespace.C: Likewise.
            * g++.dg/cpp0x/udlit-raw-op.C: Likewise.
            * g++.dg/cpp0x/udlit-raw-str.C: Likewise.
            * g++.dg/cpp0x/udlit-resolve-char8_t.C: Likewise.
            * g++.dg/cpp0x/udlit-resolve.C: Likewise.
            * g++.dg/cpp0x/udlit-sfinae.C: Likewise.
            * g++.dg/cpp0x/udlit-string-literal.C: Likewise.
            * g++.dg/cpp0x/udlit-suffix-neg.C: Likewise.
            * g++.dg/cpp1y/udlit-userdef-string.C: Likewise.
            * g++.dg/cpp0x/udlit-template.C: Likewise.
            * g++.dg/cpp0x/variadic-bind.C: Likewise.
            * g++.dg/cpp0x/variadic-function.C: Likewise.
            * g++.dg/cpp0x/variadic-mem_fn.C: Likewise.
            * g++.dg/cpp0x/variadic-tuple.C: Likewise.
            * g++.dg/cpp1y/auto-fn45.C: Likewise.
            * g++.dg/cpp1y/complex_literals1.C: Likewise.
            * g++.dg/cpp1y/complex_literals1a.C: Likewise.
            * g++.dg/cpp1y/constexpr-66093.C: Likewise.
            * g++.dg/cpp1y/constexpr-assert1.C: Likewise.
            * g++.dg/cpp1y/constexpr-assert2.C: Likewise.
            * g++.dg/cpp1y/feat-cxx14.C: Likewise.
            * g++.dg/cpp1y/lambda-generic-69078-2.C: Likewise.
            * g++.dg/cpp1y/lambda-generic-x.C: Likewise.
            * g++.dg/cpp1y/lambda-init8.C: Likewise.
            * g++.dg/cpp1y/new2.C: Likewise.
            * g++.dg/cpp1y/nsdmi-aggr12.C: Likewise.
            * g++.dg/cpp1y/pr57640.C: Likewise.
            * g++.dg/cpp1y/pr77786.C: Likewise.
            * g++.dg/cpp1y/pr95226.C: Likewise.
            * g++.dg/cpp1y/udlit-char-template-sfinae.C: Likewise.
            * g++.dg/cpp1y/udlit-char-template-vs-std-literal-operator.C:
            Likewise.
            * g++.dg/cpp1z/class-deduction14.C: Likewise.
            * g++.dg/cpp1z/decomp37.C: Likewise.
            * g++.dg/cpp1z/eval-order2.C: Likewise.
            * g++.dg/cpp1z/feat-cxx1z.C: Likewise.
            * g++.dg/cpp1z/fold1.C: Likewise.
            * g++.dg/cpp1z/init-statement6.C: Likewise.
            * g++.dg/cpp1z/launder3.C: Likewise.
            * g++.dg/cpp1z/launder4.C: Likewise.
            * g++.dg/cpp1z/launder5.C: Likewise.
            * g++.dg/cpp1z/launder6.C: Likewise.
            * g++.dg/cpp1z/utf8.C: Likewise.
            * g++.dg/cpp23/ext-floating12.C: Likewise.
            * g++.dg/cpp23/feat-cxx2b.C: Likewise.
            * g++.dg/cpp26/constexpr-voidptr1.C: Likewise.
            * g++.dg/cpp26/feat-cxx26.C: Likewise.
            * g++.dg/cpp2a/concepts-cmath.C: Likewise.
            * g++.dg/cpp2a/concepts-explicit-spec1.C: Likewise.
            * g++.dg/cpp2a/concepts-explicit-spec4.C: Likewise.
            * g++.dg/cpp2a/concepts-explicit-spec5.C: Likewise.
            * g++.dg/cpp2a/concepts-memfun.C: Likewise.
            * g++.dg/cpp2a/concepts-pr67774.C: Likewise.
            * g++.dg/cpp2a/cond-triv2.C: Likewise.
            * g++.dg/cpp2a/feat-cxx2a.C: Likewise.
            * g++.dg/cpp2a/nontype-float1.C: Likewise.
            * g++.dg/diagnostic/disable.C: Likewise.
            * g++.dg/diagnostic/missing-header-pr110164.C: Likewise.
            * g++.dg/diagnostic/pr65923.C: Likewise.
            * g++.dg/eh/arm-vfp-unwind.C: Likewise.
            * g++.dg/eh/crossjump1.C: Likewise.
            * g++.dg/eh/omit-frame-pointer.C: Likewise.
            * g++.dg/eh/simd-3.C: Likewise.
            * g++.dg/ext/bases.C: Likewise.
            * g++.dg/ext/builtin-line1.C: Likewise.
            * g++.dg/ext/builtin10.C: Likewise.
            * g++.dg/ext/complex4.C: Likewise.
            * g++.dg/ext/has_nothrow_assign.C: Likewise.
            * g++.dg/ext/has_nothrow_assign_odr.C: Likewise.
            * g++.dg/ext/has_nothrow_constructor.C: Likewise.
            * g++.dg/ext/has_nothrow_constructor_odr.C: Likewise.
            * g++.dg/ext/has_nothrow_copy-1.C: Likewise.
            * g++.dg/ext/has_nothrow_copy-2.C: Likewise.
            * g++.dg/ext/has_nothrow_copy-3.C: Likewise.
            * g++.dg/ext/has_nothrow_copy-4.C: Likewise.
            * g++.dg/ext/has_nothrow_copy-5.C: Likewise.
            * g++.dg/ext/has_nothrow_copy-6.C: Likewise.
            * g++.dg/ext/has_nothrow_copy-7.C: Likewise.
            * g++.dg/ext/has_nothrow_copy_odr.C: Likewise.
            * g++.dg/ext/has_trivial_assign.C: Likewise.
            * g++.dg/ext/has_trivial_constructor.C: Likewise.
            * g++.dg/ext/has_trivial_copy.C: Likewise.
            * g++.dg/ext/has_trivial_destructor-1.C: Likewise.
            * g++.dg/ext/has_virtual_destructor.C: Likewise.
            * g++.dg/ext/is_abstract.C: Likewise.
            * g++.dg/ext/is_aggregate.C: Likewise.
            * g++.dg/ext/is_base_of.C: Likewise.
            * g++.dg/ext/is_class.C: Likewise.
            * g++.dg/ext/is_convertible2.C: Likewise.
            * g++.dg/ext/is_empty.C: Likewise.
            * g++.dg/ext/is_enum.C: Likewise.
            * g++.dg/ext/is_pod.C: Likewise.
            * g++.dg/ext/is_polymorphic.C: Likewise.
            * g++.dg/ext/is_union.C: Likewise.
            * g++.dg/ext/underlying_type10.C: Likewise.
            * g++.dg/ext/underlying_type4.C: Likewise.
            * g++.dg/gcov/gcov-14.C: Likewise.
            * g++.dg/gcov/gcov-18.C: Likewise.
            * g++.dg/gcov/pr88045.C: Likewise.
            * g++.dg/gcov/pr88263-2.C: Likewise.
            * g++.dg/gcov/pr88263.C: Likewise.
            * g++.dg/gomp/has_device_addr-non-lvalue-1.C: Likewise.
            * g++.dg/gomp/ind-base-3.C: Likewise.
            * g++.dg/gomp/map-assignment-1.C: Likewise.
            * g++.dg/gomp/map-lvalue-ref-1.C: Likewise.
            * g++.dg/gomp/map-ptrmem-1.C: Likewise.
            * g++.dg/gomp/map-ptrmem-2.C: Likewise.
            * g++.dg/gomp/map-static-cast-lvalue-1.C: Likewise.
            * g++.dg/gomp/map-ternary-1.C: Likewise.
            * g++.dg/gomp/member-array-2.C: Likewise.
            * g++.dg/gomp/pr71910.C: Likewise.
            * g++.dg/gomp/pr91118-1.C: Likewise.
            * g++.dg/gomp/sink-2.C: Likewise.
            * g++.dg/gomp/target-this-3.C: Likewise.
            * g++.dg/gomp/target-this-4.C: Likewise.
            * g++.dg/graphite/id-1.C: Likewise.
            * g++.dg/graphite/pr42130.C: Likewise.
            * g++.dg/inherit/virtual8.C: Likewise.
            * g++.dg/init/array4.C: Likewise.
            * g++.dg/init/new18.C: Likewise.
            * g++.dg/init/new39.C: Likewise.
            * g++.dg/init/new40.C: Likewise.
            * g++.dg/ipa/devirt-29.C: Likewise.
            * g++.dg/ipa/pr85549.C: Likewise.
            * g++.dg/lookup/missing-std-include-3.C: Likewise.
            * g++.dg/lookup/pr21802.C: Likewise.
            * g++.dg/lto/20091022-2_0.C: Likewise.
            * g++.dg/lto/20091219_0.C: Likewise.
            * g++.dg/lto/pr80287_0.C: Likewise.
            * g++.dg/lto/pr89358_0.C: Likewise.
            * g++.dg/lto/pr89358_1.C: Likewise.
            * g++.dg/modules/binding-1_a.H: Likewise.
            * g++.dg/modules/binding-1_b.H: Likewise.
            * g++.dg/modules/contracts-1_a.C: Likewise.
            * g++.dg/modules/contracts-1_b.C: Likewise.
            * g++.dg/modules/contracts-2_a.C: Likewise.
            * g++.dg/modules/contracts-2_b.C: Likewise.
            * g++.dg/modules/contracts-3_a.C: Likewise.
            * g++.dg/modules/contracts-3_b.C: Likewise.
            * g++.dg/modules/contracts-4_a.C: Likewise.
            * g++.dg/modules/contracts-4_d.C: Likewise.
            * g++.dg/modules/global-3_a.C: Likewise.
            * g++.dg/modules/hello-1_a.C: Likewise.
            * g++.dg/modules/hello-2_a.C: Likewise.
            * g++.dg/modules/hello-2_b.C: Likewise.
            * g++.dg/modules/iostream-1_a.H: Likewise.
            * g++.dg/modules/p1689-2.C: Likewise.
            * g++.dg/modules/part-5_c.C: Likewise.
            * g++.dg/modules/pr99023_a.X: Likewise.
            * g++.dg/modules/pr99166_a.X: Likewise.
            * g++.dg/modules/pr99166_b.C: Likewise.
            * g++.dg/modules/pr99425-2_a.X: Likewise.
            * g++.dg/modules/pr99425-2_b.X: Likewise.
            * g++.dg/modules/string-1_a.H: Likewise.
            * g++.dg/modules/string-1_b.C: Likewise.
            * g++.dg/modules/string-view1.C: Likewise.
            * g++.dg/modules/xtreme-header-1_a.H: Likewise.
            * g++.dg/modules/xtreme-header-1_b.C: Likewise.
            * g++.dg/modules/xtreme-header-2_a.H: Likewise.
            * g++.dg/modules/xtreme-header-2_b.C: Likewise.
            * g++.dg/modules/xtreme-header-3_a.H: Likewise.
            * g++.dg/modules/xtreme-header-3_b.C: Likewise.
            * g++.dg/modules/xtreme-header-4_a.H: Likewise.
            * g++.dg/modules/xtreme-header-4_b.C: Likewise.
            * g++.dg/modules/xtreme-header-5_a.H: Likewise.
            * g++.dg/modules/xtreme-header-5_b.C: Likewise.
            * g++.dg/modules/xtreme-header-6_a.H: Likewise.
            * g++.dg/modules/xtreme-header-6_b.C: Likewise.
            * g++.dg/modules/xtreme-header-7_a.H: Likewise.
            * g++.dg/modules/xtreme-header-7_b.C: Likewise.
            * g++.dg/modules/xtreme-header_a.H: Likewise.
            * g++.dg/modules/xtreme-header_b.C: Likewise.
            * g++.dg/modules/xtreme-tr1_a.H: Likewise.
            * g++.dg/modules/xtreme-tr1_b.C: Likewise.
            * g++.dg/opt/builtins2.C: Likewise.
            * g++.dg/opt/dtor4-aux.cc: Likewise.
            * g++.dg/opt/dtor4.C: Likewise.
            * g++.dg/opt/nrv17.C: Likewise.
            * g++.dg/opt/pr102970.C: Likewise.
            * g++.dg/opt/pr109434.C: Likewise.
            * g++.dg/opt/pr110879.C: Likewise.
            * g++.dg/opt/pr15551.C: Likewise.
            * g++.dg/opt/pr30965.C: Likewise.
            * g++.dg/opt/pr65074.C: Likewise.
            * g++.dg/opt/pr66119.C: Likewise.
            * g++.dg/opt/pr77844.C: Likewise.
            * g++.dg/opt/pr85393.C: Likewise.
            * g++.dg/opt/pr94223.C: Likewise.
            * g++.dg/other/final7.C: Likewise.
            * g++.dg/other/pr40561.C: Likewise.
            * g++.dg/parse/lookup1.C: Likewise.
            * g++.dg/parse/parse5.C: Likewise.
            * g++.dg/pch/system-1.C: Likewise.
            * g++.dg/pch/system-1.Hs: Likewise.
            * g++.dg/pch/system-2.C: Likewise.
            * g++.dg/pch/system-2.Hs: Likewise.
            * g++.dg/pr100253.C: Likewise.
            * g++.dg/pr104547.C: Likewise.
            * g++.dg/pr107087.C: Likewise.
            * g++.dg/pr71488.C: Likewise.
            * g++.dg/pr71655.C: Likewise.
            * g++.dg/pr79095-3.C: Likewise.
            * g++.dg/pr83239.C: Likewise.
            * g++.dg/pr99966.C: Likewise.
            * g++.dg/rtti/typeid4.C: Likewise.
            * g++.dg/spellcheck-inttypes.C: Likewise.
            * g++.dg/template/friend10.C: Likewise.
            * g++.dg/template/pr69961a.C: Likewise.
            * g++.dg/template/show-template-tree-3.C: Likewise.
            * g++.dg/tm/inherit2.C: Likewise.
            * g++.dg/tm/pr46270.C: Likewise.
            * g++.dg/torture/alias-1.C: Likewise.
            * g++.dg/torture/builtin-location.C: Likewise.
            * g++.dg/torture/pr103669.C: Likewise.
            * g++.dg/torture/pr104601.C: Likewise.
            * g++.dg/torture/pr106922.C: Likewise.
            * g++.dg/torture/pr111019.C: Likewise.
            * g++.dg/torture/pr33572.C: Likewise.
            * g++.dg/torture/pr33735.C: Likewise.
            * g++.dg/torture/pr34099.C: Likewise.
            * g++.dg/torture/pr39417.C: Likewise.
            * g++.dg/torture/pr44972.C: Likewise.
            * g++.dg/torture/pr46364.C: Likewise.
            * g++.dg/torture/pr49628.C: Likewise.
            * g++.dg/torture/pr49938.C: Likewise.
            * g++.dg/torture/pr51903.C: Likewise.
            * g++.dg/torture/pr54498.C: Likewise.
            * g++.dg/torture/pr60750.C: Likewise.
            * g++.dg/torture/pr67600.C: Likewise.
            * g++.dg/torture/pr82084.C: Likewise.
            * g++.dg/torture/pr86763.C: Likewise.
            * g++.dg/torture/pr95493-1.C: Likewise.
            * g++.dg/tree-ssa/allocator-opt1.C: Likewise.
            * g++.dg/tree-ssa/copyprop.C: Likewise.
            * g++.dg/tree-ssa/empty-loop.C: Likewise.
            * g++.dg/tree-ssa/initlist-opt1.C: Likewise.
            * g++.dg/tree-ssa/initlist-opt2.C: Likewise.
            * g++.dg/tree-ssa/initlist-opt3.C: Likewise.
            * g++.dg/tree-ssa/initlist-opt5.C: Likewise.
            * g++.dg/tree-ssa/loop-cond-split-1.C: Likewise.
            * g++.dg/tree-ssa/loop-split-1.C: Likewise.
            * g++.dg/tree-ssa/pr101839.C: Likewise.
            * g++.dg/tree-ssa/pr104529.C: Likewise.
            * g++.dg/tree-ssa/pr109849.C: Likewise.
            * g++.dg/tree-ssa/pr14703.C: Likewise.
            * g++.dg/tree-ssa/pr19786.C: Likewise.
            * g++.dg/tree-ssa/pr46228.C: Likewise.
            * g++.dg/tree-ssa/pr63841.C: Likewise.
            * g++.dg/tree-ssa/pr69336.C: Likewise.
            * g++.dg/tree-ssa/pr78847.C: Likewise.
            * g++.dg/tree-ssa/pr95638.C: Likewise.
            * g++.dg/uninit-pr105937.C: Likewise.
            * g++.dg/vect/pr102421.cc: Likewise.
            * g++.dg/vect/pr105053.cc: Likewise.
            * g++.dg/vect/pr33426-ivdep-4.cc: Likewise.
            * g++.dg/vect/pr64410.cc: Likewise.
            * g++.dg/vect/slp-pr87105.cc: Likewise.
            * g++.dg/vect/vect-novector-pragma.cc: Likewise.
            * g++.dg/warn/Warray-bounds-27.C: Likewise.
            * g++.dg/warn/Wdangling-pointer-pr110055.C: Likewise.
            * g++.dg/warn/Wdangling-reference10.C: Likewise.
            * g++.dg/warn/Wdangling-reference14.C: Likewise.
            * g++.dg/warn/Wdangling-reference17.C: Likewise.
            * g++.dg/warn/Wdangling-reference4.C: Likewise.
            * g++.dg/warn/Wdangling-reference5.C: Likewise.
            * g++.dg/warn/Wfree-nonheap-object-3.C: Likewise.
            * g++.dg/warn/Winline-3.C: Likewise.
            * g++.dg/warn/Wmemset-elt-size1.C: Likewise.
            * g++.dg/warn/Wparentheses-34.C: Likewise.
            * g++.dg/warn/Wstrict-aliasing-bogus-escape-2.C: Likewise.
            * g++.dg/warn/Wstrict-aliasing-bogus-escape.C: Likewise.
            * g++.dg/warn/Wstringop-overflow-6.C: Likewise.
            * g++.dg/warn/Wstringop-overflow-8.C: Likewise.
            * g++.dg/warn/Wstringop-overread-1.C: Likewise.
            * g++.dg/warn/Wuninitialized-33.C: Likewise.
            * g++.dg/warn/Wuninitialized-pr111123-1.C: Likewise.
            * g++.dg/warn/format1.C: Likewise.
            * g++.dg/warn/huge-val1.C: Likewise.
            * g++.dg/warn/string1.C: Likewise.
            * g++.dg/warn/uninit-pr105562.C: Likewise.
            * g++.old-deja/g++.benjamin/15071.C: Likewise.
            * g++.old-deja/g++.brendan/copy9.C: Likewise.
            * g++.old-deja/g++.brendan/crash15.C: Likewise.
            * g++.old-deja/g++.brendan/crash20.C: Likewise.
            * g++.old-deja/g++.brendan/crash30.C: Likewise.
            * g++.old-deja/g++.brendan/crash38.C: Likewise.
            * g++.old-deja/g++.brendan/crash39.C: Likewise.
            * g++.old-deja/g++.brendan/crash49.C: Likewise.
            * g++.old-deja/g++.brendan/crash52.C: Likewise.
            * g++.old-deja/g++.brendan/crash62.C: Likewise.
            * g++.old-deja/g++.brendan/cvt1.C: Likewise.
            * g++.old-deja/g++.brendan/err-msg3.C: Likewise.
            * g++.old-deja/g++.brendan/nest21.C: Likewise.
            * g++.old-deja/g++.brendan/ptolemy2.C: Likewise.
            * g++.old-deja/g++.jason/2371.C: Likewise.
            * g++.old-deja/g++.jason/template24.C: Likewise.
            * g++.old-deja/g++.jason/template31.C: Likewise.
            * g++.old-deja/g++.jason/typeid1.C: Likewise.
            * g++.old-deja/g++.law/arg1.C: Likewise.
            * g++.old-deja/g++.law/arg8.C: Likewise.
            * g++.old-deja/g++.law/arm12.C: Likewise.
            * g++.old-deja/g++.law/arm9.C: Likewise.
            * g++.old-deja/g++.law/bad-error7.C: Likewise.
            * g++.old-deja/g++.law/code-gen5.C: Likewise.
            * g++.old-deja/g++.law/ctors10.C: Likewise.
            * g++.old-deja/g++.law/ctors12.C: Likewise.
            * g++.old-deja/g++.law/ctors13.C: Likewise.
            * g++.old-deja/g++.law/ctors17.C: Likewise.
            * g++.old-deja/g++.law/ctors6.C: Likewise.
            * g++.old-deja/g++.law/cvt16.C: Likewise.
            * g++.old-deja/g++.law/cvt2.C: Likewise.
            * g++.old-deja/g++.law/cvt7.C: Likewise.
            * g++.old-deja/g++.law/except5.C: Likewise.
            * g++.old-deja/g++.law/missed-error2.C: Likewise.
            * g++.old-deja/g++.law/nest3.C: Likewise.
            * g++.old-deja/g++.law/operators32.C: Likewise.
            * g++.old-deja/g++.law/operators4.C: Likewise.
            * g++.old-deja/g++.law/vbase1.C: Likewise.
            * g++.old-deja/g++.law/virtual3.C: Likewise.
            * g++.old-deja/g++.law/visibility1.C: Likewise.
            * g++.old-deja/g++.law/visibility10.C: Likewise.
            * g++.old-deja/g++.law/visibility13.C: Likewise.
            * g++.old-deja/g++.law/visibility17.C: Likewise.
            * g++.old-deja/g++.law/visibility2.C: Likewise.
            * g++.old-deja/g++.law/visibility22.C: Likewise.
            * g++.old-deja/g++.law/visibility25.C: Likewise.
            * g++.old-deja/g++.law/visibility7.C: Likewise.
            * g++.old-deja/g++.law/weak.C: Likewise.
            * g++.old-deja/g++.martin/new1.C: Likewise.
            * g++.old-deja/g++.mike/dyncast7.C: Likewise.
            * g++.old-deja/g++.mike/eh13.C: Likewise.
            * g++.old-deja/g++.mike/eh2.C: Likewise.
            * g++.old-deja/g++.mike/net34.C: Likewise.
            * g++.old-deja/g++.mike/net46.C: Likewise.
            * g++.old-deja/g++.mike/p658.C: Likewise.
            * g++.old-deja/g++.mike/rtti1.C: Likewise.
            * g++.old-deja/g++.ns/using4.C: Likewise.
            * g++.old-deja/g++.ns/using6.C: Likewise.
            * g++.old-deja/g++.other/defarg6.C: Likewise.
            * g++.old-deja/g++.other/headers1.C: Likewise.
            * g++.old-deja/g++.other/init9.C: Likewise.
            * g++.old-deja/g++.other/inline14.C: Likewise.
            * g++.old-deja/g++.other/inline2.C: Likewise.
            * g++.old-deja/g++.other/inline7.C: Likewise.
            * g++.old-deja/g++.other/inline8.C: Likewise.
            * g++.old-deja/g++.other/optimize2.C: Likewise.
            * g++.old-deja/g++.other/sibcall1.C: Likewise.
            * g++.old-deja/g++.other/unchanging1.C: Likewise.
            * g++.old-deja/g++.pt/crash68.C: Likewise.
            * g++.old-deja/g++.pt/memtemp100.C: Likewise.
            * g++.old-deja/g++.robertl/eb109.C: Likewise.
            * g++.old-deja/g++.robertl/eb113.C: Likewise.
            * g++.old-deja/g++.robertl/eb115.C: Likewise.
            * g++.old-deja/g++.robertl/eb124.C: Likewise.
            * g++.old-deja/g++.robertl/eb127.C: Likewise.
            * g++.old-deja/g++.robertl/eb129.C: Likewise.
            * g++.old-deja/g++.robertl/eb129a.C: Likewise.
            * g++.old-deja/g++.robertl/eb130.C: Likewise.
            * g++.old-deja/g++.robertl/eb132.C: Likewise.
            * g++.old-deja/g++.robertl/eb15.C: Likewise.
            * g++.old-deja/g++.robertl/eb21.C: Likewise.
            * g++.old-deja/g++.robertl/eb24.C: Likewise.
            * g++.old-deja/g++.robertl/eb27.C: Likewise.
            * g++.old-deja/g++.robertl/eb28.C: Likewise.
            * g++.old-deja/g++.robertl/eb29.C: Likewise.
            * g++.old-deja/g++.robertl/eb3.C: Likewise.
            * g++.old-deja/g++.robertl/eb30.C: Likewise.
            * g++.old-deja/g++.robertl/eb31.C: Likewise.
            * g++.old-deja/g++.robertl/eb33.C: Likewise.
            * g++.old-deja/g++.robertl/eb36.C: Likewise.
            * g++.old-deja/g++.robertl/eb39.C: Likewise.
            * g++.old-deja/g++.robertl/eb4.C: Likewise.
            * g++.old-deja/g++.robertl/eb41.C: Likewise.
            * g++.old-deja/g++.robertl/eb43.C: Likewise.
            * g++.old-deja/g++.robertl/eb44.C: Likewise.
            * g++.old-deja/g++.robertl/eb46.C: Likewise.
            * g++.old-deja/g++.robertl/eb54.C: Likewise.
            * g++.old-deja/g++.robertl/eb55.C: Likewise.
            * g++.old-deja/g++.robertl/eb59.C: Likewise.
            * g++.old-deja/g++.robertl/eb60.C: Likewise.
            * g++.old-deja/g++.robertl/eb62.C: Likewise.
            * g++.old-deja/g++.robertl/eb66.C: Likewise.
            * g++.old-deja/g++.robertl/eb7.C: Likewise.
            * g++.old-deja/g++.robertl/eb73.C: Likewise.
            * g++.old-deja/g++.robertl/eb77.C: Likewise.
            * g++.old-deja/g++.robertl/eb79.C: Likewise.
            * g++.old-deja/g++.warn/iomanip.C: Likewise.
            * g++.target/i386/pr105638.C: Likewise.
            * g++.target/i386/pr110170.C: Likewise.
            * g++.target/i386/pr80566-1.C: Likewise.
            * g++.target/i386/pr80566-2.C: Likewise.
            * c-c++-common/analyzer/allocation-size-1.c: Skip if
            !hostedlib because of unavailable declarations.
            * c-c++-common/analyzer/allocation-size-2.c: Likewise.
            * c-c++-common/analyzer/allocation-size-3.c: Likewise.
            * c-c++-common/analyzer/allocation-size-4.c: Likewise.
            * c-c++-common/analyzer/analyzer-verbosity-0.c: Likewise.
            * c-c++-common/analyzer/analyzer-verbosity-1.c: Likewise.
            * c-c++-common/analyzer/analyzer-verbosity-2.c: Likewise.
            * c-c++-common/analyzer/analyzer-verbosity-3.c: Likewise.
            * c-c++-common/analyzer/call-summaries-1.c: Likewise.
            * c-c++-common/analyzer/call-summaries-malloc.c: Likewise.
            * c-c++-common/analyzer/callbacks-1.c: Likewise.
            * c-c++-common/analyzer/callbacks-2.c: Likewise.
            * c-c++-common/analyzer/capacity-1.c: Likewise.
            * c-c++-common/analyzer/capacity-2.c: Likewise.
            * c-c++-common/analyzer/capacity-3.c: Likewise.
            * c-c++-common/analyzer/compound-assignment-1.c: Likewise.
            * c-c++-common/analyzer/data-model-14.c: Likewise.
            * c-c++-common/analyzer/data-model-20.c: Likewise.
            * c-c++-common/analyzer/data-model-5d.c: Likewise.
            * c-c++-common/analyzer/disabling.c: Likewise.
            * c-c++-common/analyzer/dump-state.c: Likewise.
            * c-c++-common/analyzer/edges-2.c: Likewise.
            * c-c++-common/analyzer/first-field-2.c: Likewise.
            * c-c++-common/analyzer/flex-with-call-summaries.c: Likewise.
            * c-c++-common/analyzer/flex-without-call-summaries.c:
            Likewise.
            * c-c++-common/analyzer/flexible-array-member-1.c: Likewise.
            * c-c++-common/analyzer/function-ptr-2.c: Likewise.
            * c-c++-common/analyzer/function-ptr-3.c: Likewise.
            * c-c++-common/analyzer/function-ptr-4.c: Likewise.
            * c-c++-common/analyzer/gzio.c: Likewise.
            * c-c++-common/analyzer/imprecise-floating-point-1.c:
            Likewise.
            * c-c++-common/analyzer/leak-2.c: Likewise.
            * c-c++-common/analyzer/leak-3.c: Likewise.
            * c-c++-common/analyzer/leak-4.c: Likewise.
            * c-c++-common/analyzer/loop-0-up-to-n-by-1-with-iter-obj.c:
            Likewise.
            * c-c++-common/analyzer/loop-3.c: Likewise.
            * c-c++-common/analyzer/malloc-3.c: Likewise.
            * c-c++-common/analyzer/malloc-5.c: Likewise.
            * c-c++-common/analyzer/malloc-CWE-401-example.c: Likewise.
            * c-c++-common/analyzer/malloc-CWE-415-examples.c: Likewise.
            * c-c++-common/analyzer/malloc-CWE-416-examples.c: Likewise.
            * c-c++-common/analyzer/malloc-CWE-590-examples.c: Likewise.
            * c-c++-common/analyzer/malloc-callbacks.c: Likewise.
            * c-c++-common/analyzer/malloc-dce.c: Likewise.
            * c-c++-common/analyzer/malloc-dedupe-1.c: Likewise.
            * c-c++-common/analyzer/malloc-in-loop.c: Likewise.
            * c-c++-common/analyzer/malloc-ipa-1.c: Likewise.
            * c-c++-common/analyzer/malloc-ipa-10.c: Likewise.
            * c-c++-common/analyzer/malloc-ipa-11.c: Likewise.
            * c-c++-common/analyzer/malloc-ipa-12.c: Likewise.
            * c-c++-common/analyzer/malloc-ipa-13a.c: Likewise.
            * c-c++-common/analyzer/malloc-ipa-2.c: Likewise.
            * c-c++-common/analyzer/malloc-ipa-3.c: Likewise.
            * c-c++-common/analyzer/malloc-ipa-4.c: Likewise.
            * c-c++-common/analyzer/malloc-ipa-5.c: Likewise.
            * c-c++-common/analyzer/malloc-ipa-6.c: Likewise.
            * c-c++-common/analyzer/malloc-ipa-7.c: Likewise.
            * c-c++-common/analyzer/malloc-ipa-8-unchecked.c: Likewise.
            * c-c++-common/analyzer/malloc-ipa-9.c: Likewise.
            * c-c++-common/analyzer/malloc-macro-inline-events.c:
            Likewise.
            * c-c++-common/analyzer/malloc-macro-separate-events.c:
            Likewise.
            * c-c++-common/analyzer/malloc-many-paths-3.c: Likewise.
            * c-c++-common/analyzer/malloc-meaning-1.c: Likewise.
            * c-c++-common/analyzer/malloc-paths-1.c: Likewise.
            * c-c++-common/analyzer/malloc-paths-2.c: Likewise.
            * c-c++-common/analyzer/malloc-paths-3.c: Likewise.
            * c-c++-common/analyzer/malloc-paths-4.c: Likewise.
            * c-c++-common/analyzer/malloc-paths-5.c: Likewise.
            * c-c++-common/analyzer/malloc-paths-6.c: Likewise.
            * c-c++-common/analyzer/malloc-paths-7.c: Likewise.
            * c-c++-common/analyzer/malloc-paths-8.c: Likewise.
            * c-c++-common/analyzer/malloc-paths-9-noexcept.c: Likewise.
            * c-c++-common/analyzer/malloc-sarif-1.c: Likewise.
            * c-c++-common/analyzer/malloc-vs-local-1a.c: Likewise.
            * c-c++-common/analyzer/malloc-vs-local-1b.c: Likewise.
            * c-c++-common/analyzer/malloc-vs-local-2.c: Likewise.
            * c-c++-common/analyzer/malloc-vs-local-3.c: Likewise.
            * c-c++-common/analyzer/out-of-bounds-1.c: Likewise.
            * c-c++-common/analyzer/out-of-bounds-2.c: Likewise.
            * c-c++-common/analyzer/out-of-bounds-diagram-3.c: Likewise.
            * c-c++-common/analyzer/out-of-bounds-diagram-8.c: Likewise.
            * c-c++-common/analyzer/paths-3.c: Likewise.
            * c-c++-common/analyzer/paths-6.c: Likewise.
            * c-c++-common/analyzer/paths-7.c: Likewise.
            * c-c++-common/analyzer/pr103526.c: Likewise.
            * c-c++-common/analyzer/pr106539.c: Likewise.
            * c-c++-common/analyzer/pr94399.c: Likewise.
            * c-c++-common/analyzer/pr94851-1.c: Likewise.
            * c-c++-common/analyzer/pr94851-2.c: Likewise.
            * c-c++-common/analyzer/pr94851-4.c: Likewise.
            * c-c++-common/analyzer/pr97608.c: Likewise.
            * c-c++-common/analyzer/pr98918.c: Likewise.
            * c-c++-common/analyzer/pr99716-2.c: Likewise.
            * c-c++-common/analyzer/pr99716-3.c: Likewise.
            * c-c++-common/analyzer/pragma-1.c: Likewise.
            * c-c++-common/analyzer/pragma-2.c: Likewise.
            * c-c++-common/analyzer/signal-4a.c: Likewise.
            * c-c++-common/analyzer/scope-1.c: Likewise.
            * c-c++-common/analyzer/strndup-1.c: Likewise.
            * c-c++-common/analyzer/taint-alloc-3.c: Likewise.
            * c-c++-common/analyzer/taint-realloc.c: Likewise.
            * c-c++-common/analyzer/use-after-free-3.c: Likewise.
            * c-c++-common/analyzer/zlib-4.c: Likewise.
            * c-c++-common/goacc/kernels-counter-vars-function-scope.c:
            Likewise.
            * c-c++-common/goacc/kernels-loop-2.c: Likewise.
            * c-c++-common/goacc/kernels-loop-3.c: Likewise.
            * c-c++-common/goacc/kernels-loop-data-2.c: Likewise.
            * c-c++-common/goacc/kernels-loop-data-enter-exit-2.c:
            Likewise.
            * c-c++-common/goacc/kernels-loop-data-enter-exit.c:
            Likewise.
            * c-c++-common/goacc/kernels-loop-data-update.c: Likewise.
            * c-c++-common/goacc/kernels-loop-data.c: Likewise.
            * c-c++-common/goacc/kernels-loop-g.c: Likewise.
            * c-c++-common/goacc/kernels-loop-mod-not-zero.c: Likewise.
            * c-c++-common/goacc/kernels-loop-n.c: Likewise.
            * c-c++-common/goacc/kernels-loop.c: Likewise.
            * c-c++-common/goacc/kernels-one-counter-var.c: Likewise.
            * c-c++-common/goacc/kernels-parallel-loop-data-enter-exit.c:
            Likewise.
            * c-c++-common/gomp/pr103642.c: Likewise.
            * c-c++-common/gomp/target-implicit-map-2.c: Likewise.
            * c-c++-common/simulate-thread/bitfields-4.c: Likewise.
            * c-c++-common/tm/malloc.c: Likewise.
            * g++.dg/abi/mangle36.C: Likewise.
            * g++.dg/abi/mangle40.C: Likewise.
            * g++.dg/abi/mangle41.C: Likewise.
            * g++.dg/analyzer/cstdlib.C: Likewise.
            * g++.dg/analyzer/fanalyzer-show-events-in-system-headers-default.C:
            Likewise.
            * g++.dg/analyzer/fanalyzer-show-events-in-system-headers-no.C:
            Likewise.
            * g++.dg/analyzer/fanalyzer-show-events-in-system-headers.C:
            Likewise.
            * g++.dg/analyzer/malloc.C: Likewise.
            * g++.dg/analyzer/new-vs-malloc.C: Likewise.
            * g++.dg/analyzer/placement-new-size.C: Likewise.
            * g++.dg/analyzer/vfunc-3.C: Likewise.
            * g++.dg/analyzer/vfunc-5.C: Likewise.
            * g++.dg/coroutines/coro-bad-gro-00-class-gro-scalar-return.C:
            Likewise.
            * g++.dg/coroutines/coro-bad-gro-01-void-gro-non-class-coro.C:
            Likewise.
            * g++.dg/coroutines/pr101765.C: Likewise.
            * g++.dg/coroutines/pr95477.C: Likewise.
            * g++.dg/coroutines/pr95599.C: Likewise.
            * g++.dg/coroutines/pr95711.C: Likewise.
            * g++.dg/coroutines/torture/alloc-00-gro-on-alloc-fail.C:
            Likewise.
            * g++.dg/coroutines/torture/alloc-01-overload-newdel.C:
            Likewise.
            * g++.dg/coroutines/torture/alloc-02-fail-new-grooaf-check.C:
            Likewise.
            * g++.dg/coroutines/torture/alloc-03-overload-new-1.C:
            Likewise.
            * g++.dg/coroutines/torture/alloc-04-overload-del-use-two-args.C:
            Likewise.
            * g++.dg/coroutines/torture/call-00-co-aw-arg.C: Likewise.
            * g++.dg/coroutines/torture/call-01-multiple-co-aw.C:
            Likewise.
            * g++.dg/coroutines/torture/call-02-temp-co-aw.C: Likewise.
            * g++.dg/coroutines/torture/call-03-temp-ref-co-aw.C:
            Likewise.
            * g++.dg/coroutines/torture/class-00-co-ret.C: Likewise.
            * g++.dg/coroutines/torture/class-01-co-ret-parm.C: Likewise.
            * g++.dg/coroutines/torture/class-02-templ-parm.C: Likewise.
            * g++.dg/coroutines/torture/class-03-operator-templ-parm.C:
            Likewise.
            * g++.dg/coroutines/torture/class-04-lambda-1.C: Likewise.
            * g++.dg/coroutines/torture/class-05-lambda-capture-copy-local.C:
            Likewise.
            * g++.dg/coroutines/torture/class-06-lambda-capture-ref.C:
            Likewise.
            * g++.dg/coroutines/torture/class-07-data-member.C: Likewise.
            * g++.dg/coroutines/torture/co-await-00-trivial.C: Likewise.
            * g++.dg/coroutines/torture/co-await-01-with-value.C:
            Likewise.
            * g++.dg/coroutines/torture/co-await-02-xform.C: Likewise.
            * g++.dg/coroutines/torture/co-await-03-rhs-op.C: Likewise.
            * g++.dg/coroutines/torture/co-await-04-control-flow.C:
            Likewise.
            * g++.dg/coroutines/torture/co-await-05-loop.C: Likewise.
            * g++.dg/coroutines/torture/co-await-06-ovl.C: Likewise.
            * g++.dg/coroutines/torture/co-await-07-tmpl.C: Likewise.
            * g++.dg/coroutines/torture/co-await-08-cascade.C: Likewise.
            * g++.dg/coroutines/torture/co-await-09-pair.C: Likewise.
            * g++.dg/coroutines/torture/co-await-10-template-fn-arg.C:
            Likewise.
            * g++.dg/coroutines/torture/co-await-11-forwarding.C:
            Likewise.
            * g++.dg/coroutines/torture/co-await-12-operator-2.C:
            Likewise.
            * g++.dg/coroutines/torture/co-await-13-return-ref.C:
            Likewise.
            * g++.dg/coroutines/torture/co-await-14-return-ref-to-auto.C:
            Likewise.
            * g++.dg/coroutines/torture/co-await-15-return-non-triv.C:
            Likewise.
            * g++.dg/coroutines/torture/co-await-17-capture-comp-ref.C:
            Likewise.
            * g++.dg/coroutines/torture/co-await-18-if-cond.C: Likewise.
            * g++.dg/coroutines/torture/co-await-19-while-cond.C:
            Likewise.
            * g++.dg/coroutines/torture/co-await-20-do-while-cond.C:
            Likewise.
            * g++.dg/coroutines/torture/co-await-21-switch-value.C:
            Likewise.
            * g++.dg/coroutines/torture/co-await-22-truth-and-of-if.C:
            Likewise.
            * g++.dg/coroutines/torture/co-await-24-for-init.C: Likewise.
            * g++.dg/coroutines/torture/co-await-25-for-condition.C:
            Likewise.
            * g++.dg/coroutines/torture/co-await-26-for-iteration-expr.C:
            Likewise.
            * g++.dg/coroutines/torture/co-ret-00-void-return-is-ready.C:
            Likewise.
            * g++.dg/coroutines/torture/co-ret-01-void-return-is-suspend.C:
            Likewise.
            * g++.dg/coroutines/torture/co-ret-03-different-GRO-type.C:
            Likewise.
            * g++.dg/coroutines/torture/co-ret-04-GRO-nontriv.C:
            Likewise.
            * g++.dg/coroutines/torture/co-ret-05-return-value.C:
            Likewise.
            * g++.dg/coroutines/torture/co-ret-06-template-promise-val-1.C:
            Likewise.
            * g++.dg/coroutines/torture/co-ret-07-void-cast-expr.C:
            Likewise.
            * g++.dg/coroutines/torture/co-ret-08-template-cast-ret.C:
            Likewise.
            * g++.dg/coroutines/torture/co-ret-09-bool-await-susp.C:
            Likewise.
            * g++.dg/coroutines/torture/co-ret-10-expression-evaluates-once.C:
            Likewise.
            * g++.dg/coroutines/torture/co-ret-11-co-ret-co-await.C:
            Likewise.
            * g++.dg/coroutines/torture/co-ret-12-co-ret-fun-co-await.C:
            Likewise.
            * g++.dg/coroutines/torture/co-ret-13-template-2.C: Likewise.
            * g++.dg/coroutines/torture/co-ret-14-template-3.C: Likewise.
            * g++.dg/coroutines/torture/co-ret-16-simple-control-flow.C:
            Likewise.
            * g++.dg/coroutines/torture/co-ret-17-void-ret-coro.C:
            Likewise.
            * g++.dg/coroutines/torture/co-yield-00-triv.C: Likewise.
            * g++.dg/coroutines/torture/co-yield-01-multi.C: Likewise.
            * g++.dg/coroutines/torture/co-yield-02-loop.C: Likewise.
            * g++.dg/coroutines/torture/co-yield-03-tmpl.C: Likewise.
            * g++.dg/coroutines/torture/co-yield-05-co-aw.C: Likewise.
            * g++.dg/coroutines/torture/co-yield-06-fun-parm.C: Likewise.
            * g++.dg/coroutines/torture/co-yield-07-template-fn-param.C:
            Likewise.
            * g++.dg/coroutines/torture/co-yield-08-more-refs.C:
            Likewise.
            * g++.dg/coroutines/torture/co-yield-09-more-templ-refs.C:
            Likewise.
            * g++.dg/coroutines/torture/exceptions-test-0.C: Likewise.
            * g++.dg/coroutines/torture/exceptions-test-01-n4849-a.C:
            Likewise.
            * g++.dg/coroutines/torture/func-params-00.C: Likewise.
            * g++.dg/coroutines/torture/func-params-01.C: Likewise.
            * g++.dg/coroutines/torture/func-params-02.C: Likewise.
            * g++.dg/coroutines/torture/func-params-03.C: Likewise.
            * g++.dg/coroutines/torture/func-params-04.C: Likewise.
            * g++.dg/coroutines/torture/func-params-05.C: Likewise.
            * g++.dg/coroutines/torture/func-params-06.C: Likewise.
            * g++.dg/coroutines/torture/func-params-07.C: Likewise.
            * g++.dg/coroutines/torture/lambda-00-co-ret.C: Likewise.
            * g++.dg/coroutines/torture/lambda-01-co-ret-parm.C:
            Likewise.
            * g++.dg/coroutines/torture/lambda-02-co-yield-values.C:
            Likewise.
            * g++.dg/coroutines/torture/lambda-03-auto-parm-1.C:
            Likewise.
            * g++.dg/coroutines/torture/lambda-04-templ-parm.C: Likewise.
            * g++.dg/coroutines/torture/lambda-05-capture-copy-local.C:
            Likewise.
            * g++.dg/coroutines/torture/lambda-06-multi-capture.C:
            Likewise.
            * g++.dg/coroutines/torture/lambda-07-multi-yield.C:
            Likewise.
            * g++.dg/coroutines/torture/lambda-08-co-ret-parm-ref.C:
            Likewise.
            * g++.dg/coroutines/torture/lambda-09-init-captures.C:
            Likewise.
            * g++.dg/coroutines/torture/lambda-10-mutable.C: Likewise.
            * g++.dg/coroutines/torture/local-var-00-const.C: Likewise.
            * g++.dg/coroutines/torture/local-var-01-single.C: Likewise.
            * g++.dg/coroutines/torture/local-var-02-conditional.C:
            Likewise.
            * g++.dg/coroutines/torture/local-var-03-with-awaits.C:
            Likewise.
            * g++.dg/coroutines/torture/local-var-04-hiding-nested-scopes.C:
            Likewise.
            * g++.dg/coroutines/torture/local-var-06-structured-binding.C:
            Likewise.
            * g++.dg/coroutines/torture/mid-suspend-destruction-0.C:
            Likewise.
            * g++.dg/coroutines/torture/pr95003.C: Likewise.
            * g++.dg/coroutines/torture/pr95519-00-return_void.C:
            Likewise.
            * g++.dg/coroutines/torture/pr95519-01-initial-suspend.C:
            Likewise.
            * g++.dg/coroutines/torture/pr95519-02-final_suspend.C:
            Likewise.
            * g++.dg/coroutines/torture/pr95519-03-return-value.C:
            Likewise.
            * g++.dg/coroutines/torture/pr95519-04-yield-value.C:
            Likewise.
            * g++.dg/coroutines/torture/pr95519-05-gro.C: Likewise.
            * g++.dg/coroutines/torture/pr95519-06-grooaf.C: Likewise.
            * g++.dg/coroutines/torture/pr95519-07-unhandled-exception.C:
            Likewise.
            * g++.dg/cpp0x/lambda/lambda-std-function.C: Likewise.
            * g++.dg/cpp0x/lambda/lambda-this8.C: Likewise.
            * g++.dg/cpp0x/pr70887.C: Likewise.
            * g++.dg/cpp1y/lambda-generic-variadic2.C: Likewise.
            * g++.dg/cpp23/subscript5.C: Likewise.
            * g++.dg/cpp23/subscript6.C: Likewise.
            * g++.dg/cpp2a/destroying-delete5.C: Likewise.
            * g++.dg/eh/filter2.C: Likewise.
            * g++.dg/eh/uncaught1.C: Likewise.
            * g++.dg/eh/uncaught2.C: Likewise.
            * g++.dg/expr/anew1.C: Likewise.
            * g++.dg/expr/anew2.C: Likewise.
            * g++.dg/expr/anew3.C: Likewise.
            * g++.dg/expr/anew4.C: Likewise.
            * g++.dg/ext/cleanup-10.C: Likewise.
            * g++.dg/ext/cleanup-11.C: Likewise.
            * g++.dg/ext/cleanup-5.C: Likewise.
            * g++.dg/ext/cleanup-8.C: Likewise.
            * g++.dg/ext/cleanup-9.C: Likewise.
            * g++.dg/goacc/pr107028-2.C: Likewise.
            * g++.dg/gomp/target-lambda-2.C: Likewise.
            * g++.dg/init/new11.C: Likewise.
            * g++.dg/init/value3.C: Likewise.
            * g++.dg/lto/pr66180_0.C: Likewise.
            * g++.dg/opt/eh4.C: Likewise.
            * g++.dg/opt/pr103989.C: Likewise.
            * g++.dg/opt/pr80385.C: Likewise.
            * g++.dg/opt/reload3.C: Likewise.
            * g++.dg/other/i386-1.C: Likewise.
            * g++.dg/other/i386-11.C: Likewise.
            * g++.dg/other/i386-2.C: Likewise.
            * g++.dg/other/i386-3.C: Likewise.
            * g++.dg/other/i386-4.C: Likewise.
            * g++.dg/other/i386-7.C: Likewise.
            * g++.dg/other/i386-8.C: Likewise.
            * g++.dg/other/mmintrin.C: Likewise.
            * g++.dg/other/pr34435.C: Likewise.
            * g++.dg/other/pr40446.C: Likewise.
            * g++.dg/other/pr49133.C: Likewise.
            * g++.dg/other/ucnid-1-utf8.C: Likewise.
            * g++.dg/other/ucnid-1.C: Likewise.
            * g++.dg/pr80481.C: Likewise.
            * g++.dg/torture/pr10148.C: Likewise.
            * g++.dg/torture/pr91334.C: Likewise.
            * g++.dg/torture/pr91606.C: Likewise.
            * g++.dg/tree-ssa/pr102216-2.C: Likewise.
            * g++.dg/vect/slp-pr98855.cc: Likewise.
            * g++.dg/warn/Wsystem-headers1a.C: Likewise.
            * g++.dg/warn/noreturn-1.C: Likewise.
            * g++.old-deja/g++.abi/arraynew.C: Likewise.
            * g++.old-deja/g++.abi/cxa_vec.C: Likewise.
            * g++.old-deja/g++.brendan/new3.C: Likewise.
            * g++.old-deja/g++.eh/new1.C: Likewise.
            * g++.old-deja/g++.eh/new2.C: Likewise.
            * g++.old-deja/g++.jason/template44.C: Likewise.
            * g++.old-deja/g++.law/arm13.C: Likewise.
            * g++.old-deja/g++.law/scope2.C: Likewise.
            * g++.old-deja/g++.mike/eh47.C: Likewise.
            * g++.old-deja/g++.mike/ns15.C: Likewise.
            * g++.old-deja/g++.mike/p710.C: Likewise.
            * g++.old-deja/g++.mike/p9706.C: Likewise.
            * g++.old-deja/g++.oliva/new1.C: Likewise.
            * g++.old-deja/g++.other/delete8.C: Likewise.
            * g++.target/i386/avx-pr54700-1.C: Likewise.
            * g++.target/i386/avx-pr54700-2.C: Likewise.
            * g++.target/i386/avx2-pr54700-1.C: Likewise.
            * g++.target/i386/avx2-pr54700-2.C: Likewise.
            * g++.target/i386/avx512bw-pr96246-2.C: Likewise.
            * g++.target/i386/avx512vl-pr54700-1a.C: Likewise.
            * g++.target/i386/avx512vl-pr54700-1b.C: Likewise.
            * g++.target/i386/avx512vl-pr54700-2a.C: Likewise.
            * g++.target/i386/avx512vl-pr54700-2b.C: Likewise.
            * g++.target/i386/avx512vl-pr96246-2.C: Likewise.
            * g++.target/i386/mvc4.C: Likewise.
            * g++.target/i386/pr100885.C: Likewise.
            * g++.target/i386/pr102166.C: Likewise.
            * g++.target/i386/pr103750-fwprop-1.C: Likewise.
            * g++.target/i386/pr105593.C: Likewise.
            * g++.target/i386/pr112443.C: Likewise.
            * g++.target/i386/pr113560.C: Likewise.
            * g++.target/i386/pr88152.C: Likewise.
            * g++.target/i386/pr88998.C: Likewise.
            * g++.target/i386/pr94046-1.C: Likewise.
            * g++.target/i386/pr94046-2.C: Likewise.
            * g++.target/i386/sse4_1-pr54700-1.C: Likewise.
            * g++.target/i386/sse4_1-pr54700-2.C: Likewise.
            * g++.dg/tree-ssa/pr20458.C: Skip if !hostedlib because of
            unavailable library definitions.

Diff:
---
 gcc/doc/sourcebuild.texi                               |  4 ++++
 .../c-c++-common/analyzer/allocation-size-1.c          |  2 ++
 .../c-c++-common/analyzer/allocation-size-2.c          |  1 +
 .../c-c++-common/analyzer/allocation-size-3.c          |  1 +
 .../c-c++-common/analyzer/allocation-size-4.c          |  2 ++
 .../c-c++-common/analyzer/analyzer-verbosity-0.c       |  1 +
 .../c-c++-common/analyzer/analyzer-verbosity-1.c       |  1 +
 .../c-c++-common/analyzer/analyzer-verbosity-2.c       |  1 +
 .../c-c++-common/analyzer/analyzer-verbosity-3.c       |  1 +
 gcc/testsuite/c-c++-common/analyzer/call-summaries-1.c |  1 +
 .../c-c++-common/analyzer/call-summaries-malloc.c      |  1 +
 gcc/testsuite/c-c++-common/analyzer/callbacks-1.c      |  2 ++
 gcc/testsuite/c-c++-common/analyzer/callbacks-2.c      |  2 ++
 gcc/testsuite/c-c++-common/analyzer/capacity-1.c       |  1 +
 gcc/testsuite/c-c++-common/analyzer/capacity-2.c       |  1 +
 gcc/testsuite/c-c++-common/analyzer/capacity-3.c       |  1 +
 .../c-c++-common/analyzer/compound-assignment-1.c      |  2 ++
 gcc/testsuite/c-c++-common/analyzer/data-model-14.c    |  2 ++
 gcc/testsuite/c-c++-common/analyzer/data-model-20.c    |  1 +
 gcc/testsuite/c-c++-common/analyzer/data-model-5d.c    |  2 ++
 gcc/testsuite/c-c++-common/analyzer/disabling.c        |  2 ++
 gcc/testsuite/c-c++-common/analyzer/dump-state.c       |  2 ++
 gcc/testsuite/c-c++-common/analyzer/edges-2.c          |  2 ++
 gcc/testsuite/c-c++-common/analyzer/first-field-2.c    |  2 ++
 .../c-c++-common/analyzer/flex-with-call-summaries.c   |  1 +
 .../analyzer/flex-without-call-summaries.c             |  2 ++
 .../c-c++-common/analyzer/flexible-array-member-1.c    |  2 ++
 gcc/testsuite/c-c++-common/analyzer/function-ptr-2.c   |  2 ++
 gcc/testsuite/c-c++-common/analyzer/function-ptr-3.c   |  2 ++
 gcc/testsuite/c-c++-common/analyzer/function-ptr-4.c   |  2 ++
 gcc/testsuite/c-c++-common/analyzer/gzio.c             |  2 ++
 .../c-c++-common/analyzer/imprecise-floating-point-1.c |  1 +
 gcc/testsuite/c-c++-common/analyzer/leak-2.c           |  2 ++
 gcc/testsuite/c-c++-common/analyzer/leak-3.c           |  2 ++
 gcc/testsuite/c-c++-common/analyzer/leak-4.c           |  2 ++
 .../analyzer/loop-0-up-to-n-by-1-with-iter-obj.c       |  2 ++
 gcc/testsuite/c-c++-common/analyzer/loop-3.c           |  2 ++
 gcc/testsuite/c-c++-common/analyzer/malloc-3.c         |  2 ++
 gcc/testsuite/c-c++-common/analyzer/malloc-5.c         |  2 ++
 .../c-c++-common/analyzer/malloc-CWE-401-example.c     |  2 ++
 .../c-c++-common/analyzer/malloc-CWE-415-examples.c    |  2 ++
 .../c-c++-common/analyzer/malloc-CWE-416-examples.c    |  2 ++
 .../c-c++-common/analyzer/malloc-CWE-590-examples.c    |  1 +
 gcc/testsuite/c-c++-common/analyzer/malloc-callbacks.c |  1 +
 gcc/testsuite/c-c++-common/analyzer/malloc-dce.c       |  1 +
 gcc/testsuite/c-c++-common/analyzer/malloc-dedupe-1.c  |  2 ++
 gcc/testsuite/c-c++-common/analyzer/malloc-in-loop.c   |  2 ++
 gcc/testsuite/c-c++-common/analyzer/malloc-ipa-1.c     |  2 ++
 gcc/testsuite/c-c++-common/analyzer/malloc-ipa-10.c    |  2 ++
 gcc/testsuite/c-c++-common/analyzer/malloc-ipa-11.c    |  1 +
 gcc/testsuite/c-c++-common/analyzer/malloc-ipa-12.c    |  2 ++
 gcc/testsuite/c-c++-common/analyzer/malloc-ipa-13a.c   |  1 +
 gcc/testsuite/c-c++-common/analyzer/malloc-ipa-2.c     |  1 +
 gcc/testsuite/c-c++-common/analyzer/malloc-ipa-3.c     |  2 ++
 gcc/testsuite/c-c++-common/analyzer/malloc-ipa-4.c     |  2 ++
 gcc/testsuite/c-c++-common/analyzer/malloc-ipa-5.c     |  2 ++
 gcc/testsuite/c-c++-common/analyzer/malloc-ipa-6.c     |  2 ++
 gcc/testsuite/c-c++-common/analyzer/malloc-ipa-7.c     |  2 ++
 .../c-c++-common/analyzer/malloc-ipa-8-unchecked.c     |  2 ++
 gcc/testsuite/c-c++-common/analyzer/malloc-ipa-9.c     |  1 +
 .../c-c++-common/analyzer/malloc-macro-inline-events.c |  1 +
 .../analyzer/malloc-macro-separate-events.c            |  1 +
 .../c-c++-common/analyzer/malloc-many-paths-3.c        |  2 ++
 gcc/testsuite/c-c++-common/analyzer/malloc-meaning-1.c |  1 +
 gcc/testsuite/c-c++-common/analyzer/malloc-paths-1.c   |  2 ++
 gcc/testsuite/c-c++-common/analyzer/malloc-paths-2.c   |  2 ++
 gcc/testsuite/c-c++-common/analyzer/malloc-paths-3.c   |  2 ++
 gcc/testsuite/c-c++-common/analyzer/malloc-paths-4.c   |  2 ++
 gcc/testsuite/c-c++-common/analyzer/malloc-paths-5.c   |  2 ++
 gcc/testsuite/c-c++-common/analyzer/malloc-paths-6.c   |  2 ++
 gcc/testsuite/c-c++-common/analyzer/malloc-paths-7.c   |  2 ++
 gcc/testsuite/c-c++-common/analyzer/malloc-paths-8.c   |  1 +
 .../c-c++-common/analyzer/malloc-paths-9-noexcept.c    |  1 +
 gcc/testsuite/c-c++-common/analyzer/malloc-sarif-1.c   |  1 +
 .../c-c++-common/analyzer/malloc-vs-local-1a.c         |  1 +
 .../c-c++-common/analyzer/malloc-vs-local-1b.c         |  1 +
 .../c-c++-common/analyzer/malloc-vs-local-2.c          |  2 ++
 .../c-c++-common/analyzer/malloc-vs-local-3.c          |  2 ++
 gcc/testsuite/c-c++-common/analyzer/out-of-bounds-1.c  |  2 ++
 gcc/testsuite/c-c++-common/analyzer/out-of-bounds-2.c  |  2 ++
 .../c-c++-common/analyzer/out-of-bounds-diagram-3.c    |  1 +
 .../c-c++-common/analyzer/out-of-bounds-diagram-8.c    |  1 +
 gcc/testsuite/c-c++-common/analyzer/paths-3.c          |  1 +
 gcc/testsuite/c-c++-common/analyzer/paths-6.c          |  2 ++
 gcc/testsuite/c-c++-common/analyzer/paths-7.c          |  2 ++
 gcc/testsuite/c-c++-common/analyzer/pr103526.c         |  2 ++
 gcc/testsuite/c-c++-common/analyzer/pr106539.c         |  2 ++
 gcc/testsuite/c-c++-common/analyzer/pr93290.c          |  2 ++
 gcc/testsuite/c-c++-common/analyzer/pr94399.c          |  2 ++
 gcc/testsuite/c-c++-common/analyzer/pr94851-1.c        |  1 +
 gcc/testsuite/c-c++-common/analyzer/pr94851-2.c        |  1 +
 gcc/testsuite/c-c++-common/analyzer/pr94851-4.c        |  1 +
 gcc/testsuite/c-c++-common/analyzer/pr97608.c          |  2 ++
 gcc/testsuite/c-c++-common/analyzer/pr98918.c          |  1 +
 gcc/testsuite/c-c++-common/analyzer/pr99716-2.c        |  2 ++
 gcc/testsuite/c-c++-common/analyzer/pr99716-3.c        |  2 ++
 gcc/testsuite/c-c++-common/analyzer/pragma-1.c         |  2 ++
 gcc/testsuite/c-c++-common/analyzer/pragma-2.c         |  1 +
 gcc/testsuite/c-c++-common/analyzer/scope-1.c          |  2 ++
 gcc/testsuite/c-c++-common/analyzer/signal-4a.c        |  1 +
 gcc/testsuite/c-c++-common/analyzer/strndup-1.c        |  1 +
 gcc/testsuite/c-c++-common/analyzer/taint-alloc-3.c    |  2 ++
 gcc/testsuite/c-c++-common/analyzer/taint-realloc.c    |  2 ++
 gcc/testsuite/c-c++-common/analyzer/use-after-free-3.c |  2 ++
 gcc/testsuite/c-c++-common/analyzer/zlib-4.c           |  2 ++
 .../goacc/kernels-counter-vars-function-scope.c        |  1 +
 gcc/testsuite/c-c++-common/goacc/kernels-loop-2.c      |  1 +
 gcc/testsuite/c-c++-common/goacc/kernels-loop-3.c      |  1 +
 gcc/testsuite/c-c++-common/goacc/kernels-loop-data-2.c |  1 +
 .../goacc/kernels-loop-data-enter-exit-2.c             |  1 +
 .../c-c++-common/goacc/kernels-loop-data-enter-exit.c  |  1 +
 .../c-c++-common/goacc/kernels-loop-data-update.c      |  1 +
 gcc/testsuite/c-c++-common/goacc/kernels-loop-data.c   |  1 +
 gcc/testsuite/c-c++-common/goacc/kernels-loop-g.c      |  1 +
 .../c-c++-common/goacc/kernels-loop-mod-not-zero.c     |  1 +
 gcc/testsuite/c-c++-common/goacc/kernels-loop-n.c      |  1 +
 gcc/testsuite/c-c++-common/goacc/kernels-loop.c        |  1 +
 .../c-c++-common/goacc/kernels-one-counter-var.c       |  1 +
 .../goacc/kernels-parallel-loop-data-enter-exit.c      |  1 +
 gcc/testsuite/c-c++-common/gomp/pr103642.c             |  1 +
 .../c-c++-common/gomp/target-implicit-map-2.c          |  2 ++
 gcc/testsuite/c-c++-common/pr36513-2.c                 |  1 +
 .../c-c++-common/simulate-thread/bitfields-4.c         |  1 +
 gcc/testsuite/c-c++-common/tm/malloc.c                 |  1 +
 gcc/testsuite/g++.dg/abi/mangle36.C                    |  1 +
 gcc/testsuite/g++.dg/abi/mangle40.C                    |  1 +
 gcc/testsuite/g++.dg/abi/mangle41.C                    |  1 +
 gcc/testsuite/g++.dg/analyzer/cstdlib.C                |  2 ++
 .../fanalyzer-show-events-in-system-headers-default.C  |  1 +
 .../fanalyzer-show-events-in-system-headers-no.C       |  1 +
 .../analyzer/fanalyzer-show-events-in-system-headers.C |  1 +
 gcc/testsuite/g++.dg/analyzer/malloc.C                 |  1 +
 gcc/testsuite/g++.dg/analyzer/new-vs-malloc.C          |  2 ++
 gcc/testsuite/g++.dg/analyzer/placement-new-size.C     |  1 +
 gcc/testsuite/g++.dg/analyzer/pr93212.C                |  1 +
 gcc/testsuite/g++.dg/analyzer/vfunc-2.C                |  1 +
 gcc/testsuite/g++.dg/analyzer/vfunc-3.C                |  2 ++
 gcc/testsuite/g++.dg/analyzer/vfunc-5.C                |  1 +
 gcc/testsuite/g++.dg/cdce3.C                           |  5 +++--
 gcc/testsuite/g++.dg/concepts/expression.C             |  1 +
 gcc/testsuite/g++.dg/concepts/fn3.C                    |  1 +
 gcc/testsuite/g++.dg/concepts/fn9.C                    |  1 +
 gcc/testsuite/g++.dg/concepts/generic-fn.C             |  1 +
 gcc/testsuite/g++.dg/concepts/intro2.C                 |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-access1.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-assume2.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-assume3.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-assume4.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-config1.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-constexpr1.C  |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-deduced2.C    |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-externC.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-friend1.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-ignore2.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-multiline1.C  |  1 +
 .../g++.dg/contracts/contracts-nested-class2.C         |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-post2.C       |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-post3.C       |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-post7.C       |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-pre10.C       |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-pre2.C        |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-pre2a2.C      |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-pre3.C        |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-pre4.C        |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-pre5.C        |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-pre7.C        |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-pre9.C        |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-redecl3.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-redecl4.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-redecl6.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-redecl7.C     |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec1.C  |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec2.C  |  1 +
 gcc/testsuite/g++.dg/contracts/contracts-tmpl-spec3.C  |  1 +
 gcc/testsuite/g++.dg/contracts/contracts10.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts14.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts15.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts16.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts17.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts18.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts19.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts2.C            |  1 +
 gcc/testsuite/g++.dg/contracts/contracts22.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts24.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts25.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts3.C            |  1 +
 gcc/testsuite/g++.dg/contracts/contracts35.C           |  1 +
 gcc/testsuite/g++.dg/contracts/contracts4.C            |  1 +
 gcc/testsuite/g++.dg/contracts/contracts5.C            |  1 +
 gcc/testsuite/g++.dg/contracts/contracts6.C            |  1 +
 gcc/testsuite/g++.dg/contracts/contracts7.C            |  1 +
 gcc/testsuite/g++.dg/contracts/contracts9.C            |  1 +
 .../coro-bad-gro-00-class-gro-scalar-return.C          |  2 ++
 .../coro-bad-gro-01-void-gro-non-class-coro.C          |  2 ++
 gcc/testsuite/g++.dg/coroutines/pr100611.C             |  1 +
 gcc/testsuite/g++.dg/coroutines/pr100772-b.C           |  1 +
 gcc/testsuite/g++.dg/coroutines/pr101133.C             |  1 +
 gcc/testsuite/g++.dg/coroutines/pr101367.C             |  1 +
 gcc/testsuite/g++.dg/coroutines/pr101765.C             |  1 +
 gcc/testsuite/g++.dg/coroutines/pr101976.C             |  1 +
 gcc/testsuite/g++.dg/coroutines/pr102454.C             |  1 +
 gcc/testsuite/g++.dg/coroutines/pr104051.C             |  1 +
 gcc/testsuite/g++.dg/coroutines/pr94288.C              |  1 +
 gcc/testsuite/g++.dg/coroutines/pr95477.C              |  1 +
 gcc/testsuite/g++.dg/coroutines/pr95520.C              |  1 +
 gcc/testsuite/g++.dg/coroutines/pr95599.C              |  1 +
 gcc/testsuite/g++.dg/coroutines/pr95711.C              |  1 +
 gcc/testsuite/g++.dg/coroutines/pr95736.C              |  1 +
 gcc/testsuite/g++.dg/coroutines/pr97587.C              |  1 +
 gcc/testsuite/g++.dg/coroutines/pr99576_1.C            |  1 +
 gcc/testsuite/g++.dg/coroutines/pr99576_2.C            |  1 +
 gcc/testsuite/g++.dg/coroutines/ramp-return-a.C        |  1 +
 gcc/testsuite/g++.dg/coroutines/ramp-return-b.C        |  1 +
 gcc/testsuite/g++.dg/coroutines/ramp-return-c.C        |  1 +
 .../g++.dg/coroutines/symmetric-transfer-00-basic.C    |  1 +
 .../coroutines/torture/alloc-00-gro-on-alloc-fail.C    |  1 +
 .../coroutines/torture/alloc-01-overload-newdel.C      |  1 +
 .../torture/alloc-02-fail-new-grooaf-check.C           |  1 +
 .../coroutines/torture/alloc-03-overload-new-1.C       |  1 +
 .../torture/alloc-04-overload-del-use-two-args.C       |  1 +
 .../g++.dg/coroutines/torture/call-00-co-aw-arg.C      |  1 +
 .../g++.dg/coroutines/torture/call-01-multiple-co-aw.C |  1 +
 .../g++.dg/coroutines/torture/call-02-temp-co-aw.C     |  1 +
 .../g++.dg/coroutines/torture/call-03-temp-ref-co-aw.C |  1 +
 .../g++.dg/coroutines/torture/class-00-co-ret.C        |  1 +
 .../g++.dg/coroutines/torture/class-01-co-ret-parm.C   |  1 +
 .../g++.dg/coroutines/torture/class-02-templ-parm.C    |  1 +
 .../coroutines/torture/class-03-operator-templ-parm.C  |  1 +
 .../g++.dg/coroutines/torture/class-04-lambda-1.C      |  1 +
 .../torture/class-05-lambda-capture-copy-local.C       |  1 +
 .../coroutines/torture/class-06-lambda-capture-ref.C   |  1 +
 .../g++.dg/coroutines/torture/class-07-data-member.C   |  1 +
 .../g++.dg/coroutines/torture/co-await-00-trivial.C    |  1 +
 .../g++.dg/coroutines/torture/co-await-01-with-value.C |  1 +
 .../g++.dg/coroutines/torture/co-await-02-xform.C      |  1 +
 .../g++.dg/coroutines/torture/co-await-03-rhs-op.C     |  1 +
 .../coroutines/torture/co-await-04-control-flow.C      |  1 +
 .../g++.dg/coroutines/torture/co-await-05-loop.C       |  1 +
 .../g++.dg/coroutines/torture/co-await-06-ovl.C        |  1 +
 .../g++.dg/coroutines/torture/co-await-07-tmpl.C       |  1 +
 .../g++.dg/coroutines/torture/co-await-08-cascade.C    |  1 +
 .../g++.dg/coroutines/torture/co-await-09-pair.C       |  1 +
 .../coroutines/torture/co-await-10-template-fn-arg.C   |  1 +
 .../g++.dg/coroutines/torture/co-await-11-forwarding.C |  1 +
 .../g++.dg/coroutines/torture/co-await-12-operator-2.C |  1 +
 .../g++.dg/coroutines/torture/co-await-13-return-ref.C |  1 +
 .../torture/co-await-14-return-ref-to-auto.C           |  1 +
 .../coroutines/torture/co-await-15-return-non-triv.C   |  1 +
 .../coroutines/torture/co-await-16-template-traits.C   |  1 +
 .../coroutines/torture/co-await-17-capture-comp-ref.C  |  1 +
 .../g++.dg/coroutines/torture/co-await-18-if-cond.C    |  1 +
 .../g++.dg/coroutines/torture/co-await-19-while-cond.C |  1 +
 .../coroutines/torture/co-await-20-do-while-cond.C     |  1 +
 .../coroutines/torture/co-await-21-switch-value.C      |  1 +
 .../coroutines/torture/co-await-22-truth-and-of-if.C   |  1 +
 .../g++.dg/coroutines/torture/co-await-24-for-init.C   |  1 +
 .../coroutines/torture/co-await-25-for-condition.C     |  1 +
 .../torture/co-await-26-for-iteration-expr.C           |  1 +
 .../torture/co-ret-00-void-return-is-ready.C           |  1 +
 .../torture/co-ret-01-void-return-is-suspend.C         |  1 +
 .../coroutines/torture/co-ret-03-different-GRO-type.C  |  1 +
 .../g++.dg/coroutines/torture/co-ret-04-GRO-nontriv.C  |  1 +
 .../g++.dg/coroutines/torture/co-ret-05-return-value.C |  1 +
 .../torture/co-ret-06-template-promise-val-1.C         |  1 +
 .../coroutines/torture/co-ret-07-void-cast-expr.C      |  1 +
 .../coroutines/torture/co-ret-08-template-cast-ret.C   |  1 +
 .../coroutines/torture/co-ret-09-bool-await-susp.C     |  1 +
 .../torture/co-ret-10-expression-evaluates-once.C      |  1 +
 .../coroutines/torture/co-ret-11-co-ret-co-await.C     |  1 +
 .../coroutines/torture/co-ret-12-co-ret-fun-co-await.C |  1 +
 .../g++.dg/coroutines/torture/co-ret-13-template-2.C   |  1 +
 .../g++.dg/coroutines/torture/co-ret-14-template-3.C   |  1 +
 .../coroutines/torture/co-ret-15-default-return_void.C |  1 +
 .../coroutines/torture/co-ret-16-simple-control-flow.C |  1 +
 .../coroutines/torture/co-ret-17-void-ret-coro.C       |  1 +
 .../g++.dg/coroutines/torture/co-yield-00-triv.C       |  1 +
 .../g++.dg/coroutines/torture/co-yield-01-multi.C      |  1 +
 .../g++.dg/coroutines/torture/co-yield-02-loop.C       |  1 +
 .../g++.dg/coroutines/torture/co-yield-03-tmpl.C       |  1 +
 .../torture/co-yield-04-complex-local-state.C          |  1 +
 .../g++.dg/coroutines/torture/co-yield-05-co-aw.C      |  1 +
 .../g++.dg/coroutines/torture/co-yield-06-fun-parm.C   |  1 +
 .../coroutines/torture/co-yield-07-template-fn-param.C |  1 +
 .../g++.dg/coroutines/torture/co-yield-08-more-refs.C  |  1 +
 .../coroutines/torture/co-yield-09-more-templ-refs.C   |  1 +
 .../g++.dg/coroutines/torture/exceptions-test-0.C      |  1 +
 .../coroutines/torture/exceptions-test-01-n4849-a.C    |  1 +
 .../g++.dg/coroutines/torture/extern-c-coroutine.C     |  2 ++
 .../g++.dg/coroutines/torture/func-params-00.C         |  1 +
 .../g++.dg/coroutines/torture/func-params-01.C         |  1 +
 .../g++.dg/coroutines/torture/func-params-02.C         |  1 +
 .../g++.dg/coroutines/torture/func-params-03.C         |  1 +
 .../g++.dg/coroutines/torture/func-params-04.C         |  1 +
 .../g++.dg/coroutines/torture/func-params-05.C         |  1 +
 .../g++.dg/coroutines/torture/func-params-06.C         |  1 +
 .../g++.dg/coroutines/torture/func-params-07.C         |  1 +
 .../g++.dg/coroutines/torture/func-params-08.C         |  1 +
 .../torture/func-params-09-awaitable-parms.C           |  1 +
 .../g++.dg/coroutines/torture/lambda-00-co-ret.C       |  1 +
 .../g++.dg/coroutines/torture/lambda-01-co-ret-parm.C  |  1 +
 .../coroutines/torture/lambda-02-co-yield-values.C     |  1 +
 .../g++.dg/coroutines/torture/lambda-03-auto-parm-1.C  |  1 +
 .../g++.dg/coroutines/torture/lambda-04-templ-parm.C   |  1 +
 .../coroutines/torture/lambda-05-capture-copy-local.C  |  1 +
 .../coroutines/torture/lambda-06-multi-capture.C       |  1 +
 .../g++.dg/coroutines/torture/lambda-07-multi-yield.C  |  1 +
 .../coroutines/torture/lambda-08-co-ret-parm-ref.C     |  1 +
 .../coroutines/torture/lambda-09-init-captures.C       |  1 +
 .../g++.dg/coroutines/torture/lambda-10-mutable.C      |  1 +
 .../g++.dg/coroutines/torture/local-var-00-const.C     |  1 +
 .../g++.dg/coroutines/torture/local-var-01-single.C    |  1 +
 .../coroutines/torture/local-var-02-conditional.C      |  1 +
 .../coroutines/torture/local-var-03-with-awaits.C      |  1 +
 .../torture/local-var-04-hiding-nested-scopes.C        |  1 +
 .../g++.dg/coroutines/torture/local-var-05-awaitable.C |  1 +
 .../torture/local-var-06-structured-binding.C          |  1 +
 .../coroutines/torture/mid-suspend-destruction-0.C     |  1 +
 gcc/testsuite/g++.dg/coroutines/torture/pr95003.C      |  1 +
 .../g++.dg/coroutines/torture/pr95519-00-return_void.C |  1 +
 .../coroutines/torture/pr95519-01-initial-suspend.C    |  1 +
 .../coroutines/torture/pr95519-02-final_suspend.C      |  1 +
 .../coroutines/torture/pr95519-03-return-value.C       |  1 +
 .../g++.dg/coroutines/torture/pr95519-04-yield-value.C |  1 +
 .../g++.dg/coroutines/torture/pr95519-05-gro.C         |  1 +
 .../g++.dg/coroutines/torture/pr95519-06-grooaf.C      |  1 +
 .../torture/pr95519-07-unhandled-exception.C           |  1 +
 gcc/testsuite/g++.dg/coroutines/torture/pr95615-01.C   |  1 +
 gcc/testsuite/g++.dg/coroutines/torture/pr95615-02.C   |  1 +
 gcc/testsuite/g++.dg/coroutines/torture/pr95615-03.C   |  1 +
 gcc/testsuite/g++.dg/coroutines/torture/pr95615-04.C   |  1 +
 gcc/testsuite/g++.dg/coroutines/torture/pr95615-05.C   |  1 +
 gcc/testsuite/g++.dg/coroutines/torture/pr98704.C      |  1 +
 gcc/testsuite/g++.dg/cpp/pr80005.C                     |  1 +
 gcc/testsuite/g++.dg/cpp0x/Wliteral-suffix.C           |  1 +
 gcc/testsuite/g++.dg/cpp0x/Wpessimizing-move2.C        |  1 +
 gcc/testsuite/g++.dg/cpp0x/constexpr-70001-3.C         |  1 +
 gcc/testsuite/g++.dg/cpp0x/constexpr-ice16.C           |  1 +
 gcc/testsuite/g++.dg/cpp0x/dc5.C                       |  1 +
 gcc/testsuite/g++.dg/cpp0x/enum35.C                    |  1 +
 gcc/testsuite/g++.dg/cpp0x/enum36.C                    |  1 +
 gcc/testsuite/g++.dg/cpp0x/initlist-opt1.C             |  1 +
 gcc/testsuite/g++.dg/cpp0x/initlist-vect2.C            |  1 +
 gcc/testsuite/g++.dg/cpp0x/initlist13.C                |  1 +
 gcc/testsuite/g++.dg/cpp0x/initlist15.C                |  1 +
 gcc/testsuite/g++.dg/cpp0x/initlist25.C                |  1 +
 gcc/testsuite/g++.dg/cpp0x/initlist54.C                |  1 +
 gcc/testsuite/g++.dg/cpp0x/initlist92.C                |  1 +
 .../g++.dg/cpp0x/lambda/lambda-capture-const-ref-neg.C |  1 +
 .../g++.dg/cpp0x/lambda/lambda-capture-const-ref.C     |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const-neg.C   |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-const.C       |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-deduce.C      |  1 +
 .../g++.dg/cpp0x/lambda/lambda-in-class-neg.C          |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-in-class.C    |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mixed.C       |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-mutable.C     |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nested.C      |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-non-const.C   |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nop.C         |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nullptr.C     |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-pass.C        |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-recursive.C   |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ref-default.C |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-ref.C         |  1 +
 .../g++.dg/cpp0x/lambda/lambda-std-function.C          |  1 +
 gcc/testsuite/g++.dg/cpp0x/lambda/lambda-this8.C       |  1 +
 gcc/testsuite/g++.dg/cpp0x/nullptr20.C                 |  1 +
 gcc/testsuite/g++.dg/cpp0x/pr61038.C                   |  1 +
 gcc/testsuite/g++.dg/cpp0x/pr70887.C                   |  1 +
 gcc/testsuite/g++.dg/cpp0x/rv-trivial-bug.C            |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-concat-neg.C          |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-concat.C              |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-embed-quote.C         |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-extended-id-1.C       |  2 ++
 gcc/testsuite/g++.dg/cpp0x/udlit-general.C             |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-namespace.C           |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-raw-op.C              |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-raw-str.C             |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-resolve-char8_t.C     |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-resolve.C             |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-sfinae.C              |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-string-literal.C      |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-suffix-neg.C          |  1 +
 gcc/testsuite/g++.dg/cpp0x/udlit-template.C            |  1 +
 gcc/testsuite/g++.dg/cpp0x/variadic-bind.C             |  1 +
 gcc/testsuite/g++.dg/cpp0x/variadic-function.C         |  1 +
 gcc/testsuite/g++.dg/cpp0x/variadic-mem_fn.C           |  1 +
 gcc/testsuite/g++.dg/cpp0x/variadic-tuple.C            |  1 +
 gcc/testsuite/g++.dg/cpp1y/auto-fn45.C                 |  1 +
 gcc/testsuite/g++.dg/cpp1y/complex_literals1.C         |  1 +
 gcc/testsuite/g++.dg/cpp1y/complex_literals1a.C        |  1 +
 gcc/testsuite/g++.dg/cpp1y/constexpr-66093.C           |  1 +
 gcc/testsuite/g++.dg/cpp1y/constexpr-assert1.C         |  1 +
 gcc/testsuite/g++.dg/cpp1y/constexpr-assert2.C         |  1 +
 gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C                |  1 +
 gcc/testsuite/g++.dg/cpp1y/lambda-generic-69078-2.C    |  1 +
 gcc/testsuite/g++.dg/cpp1y/lambda-generic-variadic2.C  |  1 +
 gcc/testsuite/g++.dg/cpp1y/lambda-generic-x.C          |  1 +
 gcc/testsuite/g++.dg/cpp1y/lambda-init8.C              |  1 +
 gcc/testsuite/g++.dg/cpp1y/new2.C                      |  1 +
 gcc/testsuite/g++.dg/cpp1y/nsdmi-aggr12.C              |  1 +
 gcc/testsuite/g++.dg/cpp1y/pr57640.C                   |  1 +
 gcc/testsuite/g++.dg/cpp1y/pr77786.C                   |  1 +
 gcc/testsuite/g++.dg/cpp1y/pr95226.C                   |  1 +
 .../g++.dg/cpp1y/udlit-char-template-sfinae.C          |  1 +
 .../udlit-char-template-vs-std-literal-operator.C      |  1 +
 gcc/testsuite/g++.dg/cpp1y/udlit-userdef-string.C      |  1 +
 gcc/testsuite/g++.dg/cpp1z/class-deduction14.C         |  1 +
 gcc/testsuite/g++.dg/cpp1z/decomp37.C                  |  1 +
 gcc/testsuite/g++.dg/cpp1z/eval-order2.C               |  1 +
 gcc/testsuite/g++.dg/cpp1z/feat-cxx1z.C                |  1 +
 gcc/testsuite/g++.dg/cpp1z/fold1.C                     |  1 +
 gcc/testsuite/g++.dg/cpp1z/init-statement6.C           |  1 +
 gcc/testsuite/g++.dg/cpp1z/launder3.C                  |  1 +
 gcc/testsuite/g++.dg/cpp1z/launder4.C                  |  1 +
 gcc/testsuite/g++.dg/cpp1z/launder5.C                  |  1 +
 gcc/testsuite/g++.dg/cpp1z/launder6.C                  |  1 +
 gcc/testsuite/g++.dg/cpp1z/utf8.C                      |  1 +
 gcc/testsuite/g++.dg/cpp23/ext-floating12.C            |  1 +
 gcc/testsuite/g++.dg/cpp23/feat-cxx2b.C                |  1 +
 gcc/testsuite/g++.dg/cpp23/subscript5.C                |  1 +
 gcc/testsuite/g++.dg/cpp23/subscript6.C                |  1 +
 gcc/testsuite/g++.dg/cpp26/constexpr-voidptr1.C        |  1 +
 gcc/testsuite/g++.dg/cpp26/feat-cxx26.C                |  1 +
 gcc/testsuite/g++.dg/cpp2a/concepts-cmath.C            |  1 +
 gcc/testsuite/g++.dg/cpp2a/concepts-explicit-spec1.C   |  1 +
 gcc/testsuite/g++.dg/cpp2a/concepts-explicit-spec4.C   |  1 +
 gcc/testsuite/g++.dg/cpp2a/concepts-explicit-spec5.C   |  1 +
 gcc/testsuite/g++.dg/cpp2a/concepts-memfun.C           |  1 +
 gcc/testsuite/g++.dg/cpp2a/concepts-pr67774.C          |  1 +
 gcc/testsuite/g++.dg/cpp2a/cond-triv2.C                |  1 +
 gcc/testsuite/g++.dg/cpp2a/destroying-delete5.C        |  1 +
 gcc/testsuite/g++.dg/cpp2a/feat-cxx2a.C                |  1 +
 gcc/testsuite/g++.dg/cpp2a/nontype-float1.C            |  1 +
 gcc/testsuite/g++.dg/diagnostic/disable.C              |  1 +
 .../g++.dg/diagnostic/missing-header-pr110164.C        |  1 +
 gcc/testsuite/g++.dg/diagnostic/pr65923.C              |  1 +
 gcc/testsuite/g++.dg/eh/arm-vfp-unwind.C               |  1 +
 gcc/testsuite/g++.dg/eh/crossjump1.C                   |  1 +
 gcc/testsuite/g++.dg/eh/filter2.C                      |  1 +
 gcc/testsuite/g++.dg/eh/omit-frame-pointer.C           |  1 +
 gcc/testsuite/g++.dg/eh/simd-3.C                       |  1 +
 gcc/testsuite/g++.dg/eh/uncaught1.C                    |  1 +
 gcc/testsuite/g++.dg/eh/uncaught2.C                    |  1 +
 gcc/testsuite/g++.dg/expr/anew1.C                      |  2 ++
 gcc/testsuite/g++.dg/expr/anew2.C                      |  2 ++
 gcc/testsuite/g++.dg/expr/anew3.C                      |  2 ++
 gcc/testsuite/g++.dg/expr/anew4.C                      |  2 ++
 gcc/testsuite/g++.dg/ext/bases.C                       |  1 +
 gcc/testsuite/g++.dg/ext/builtin-line1.C               |  1 +
 gcc/testsuite/g++.dg/ext/builtin10.C                   |  1 +
 gcc/testsuite/g++.dg/ext/cleanup-10.C                  |  1 +
 gcc/testsuite/g++.dg/ext/cleanup-11.C                  |  1 +
 gcc/testsuite/g++.dg/ext/cleanup-5.C                   |  1 +
 gcc/testsuite/g++.dg/ext/cleanup-8.C                   |  1 +
 gcc/testsuite/g++.dg/ext/cleanup-9.C                   |  1 +
 gcc/testsuite/g++.dg/ext/complex4.C                    |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_assign.C          |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_assign_odr.C      |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_constructor.C     |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_constructor_odr.C |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_copy-1.C          |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_copy-2.C          |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_copy-3.C          |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_copy-4.C          |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_copy-5.C          |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_copy-6.C          |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_copy-7.C          |  1 +
 gcc/testsuite/g++.dg/ext/has_nothrow_copy_odr.C        |  1 +
 gcc/testsuite/g++.dg/ext/has_trivial_assign.C          |  1 +
 gcc/testsuite/g++.dg/ext/has_trivial_constructor.C     |  1 +
 gcc/testsuite/g++.dg/ext/has_trivial_copy.C            |  1 +
 gcc/testsuite/g++.dg/ext/has_trivial_destructor-1.C    |  1 +
 gcc/testsuite/g++.dg/ext/has_virtual_destructor.C      |  1 +
 gcc/testsuite/g++.dg/ext/is_abstract.C                 |  1 +
 gcc/testsuite/g++.dg/ext/is_aggregate.C                |  1 +
 gcc/testsuite/g++.dg/ext/is_base_of.C                  |  1 +
 gcc/testsuite/g++.dg/ext/is_class.C                    |  1 +
 gcc/testsuite/g++.dg/ext/is_convertible2.C             |  1 +
 gcc/testsuite/g++.dg/ext/is_empty.C                    |  1 +
 gcc/testsuite/g++.dg/ext/is_enum.C                     |  1 +
 gcc/testsuite/g++.dg/ext/is_pod.C                      |  1 +
 gcc/testsuite/g++.dg/ext/is_polymorphic.C              |  1 +
 gcc/testsuite/g++.dg/ext/is_union.C                    |  1 +
 gcc/testsuite/g++.dg/ext/underlying_type10.C           |  1 +
 gcc/testsuite/g++.dg/ext/underlying_type4.C            |  1 +
 gcc/testsuite/g++.dg/gcov/gcov-14.C                    |  1 +
 gcc/testsuite/g++.dg/gcov/gcov-18.C                    |  1 +
 gcc/testsuite/g++.dg/gcov/pr88045.C                    |  1 +
 gcc/testsuite/g++.dg/gcov/pr88263-2.C                  |  1 +
 gcc/testsuite/g++.dg/gcov/pr88263.C                    |  1 +
 gcc/testsuite/g++.dg/goacc/pr107028-2.C                |  1 +
 .../g++.dg/gomp/has_device_addr-non-lvalue-1.C         |  1 +
 gcc/testsuite/g++.dg/gomp/ind-base-3.C                 |  2 ++
 gcc/testsuite/g++.dg/gomp/map-assignment-1.C           |  2 ++
 gcc/testsuite/g++.dg/gomp/map-lvalue-ref-1.C           |  2 ++
 gcc/testsuite/g++.dg/gomp/map-ptrmem-1.C               |  2 ++
 gcc/testsuite/g++.dg/gomp/map-ptrmem-2.C               |  2 ++
 gcc/testsuite/g++.dg/gomp/map-static-cast-lvalue-1.C   |  2 ++
 gcc/testsuite/g++.dg/gomp/map-ternary-1.C              |  2 ++
 gcc/testsuite/g++.dg/gomp/member-array-2.C             |  2 ++
 gcc/testsuite/g++.dg/gomp/pr71910.C                    |  1 +
 gcc/testsuite/g++.dg/gomp/pr91118-1.C                  |  1 +
 gcc/testsuite/g++.dg/gomp/sink-2.C                     |  1 +
 gcc/testsuite/g++.dg/gomp/target-lambda-2.C            |  2 ++
 gcc/testsuite/g++.dg/gomp/target-this-3.C              |  2 ++
 gcc/testsuite/g++.dg/gomp/target-this-4.C              |  2 ++
 gcc/testsuite/g++.dg/graphite/id-1.C                   |  2 ++
 gcc/testsuite/g++.dg/graphite/pr42130.C                |  5 +++--
 gcc/testsuite/g++.dg/inherit/virtual8.C                |  1 +
 gcc/testsuite/g++.dg/init/array4.C                     |  1 +
 gcc/testsuite/g++.dg/init/new11.C                      |  1 +
 gcc/testsuite/g++.dg/init/new18.C                      |  1 +
 gcc/testsuite/g++.dg/init/new39.C                      |  1 +
 gcc/testsuite/g++.dg/init/new40.C                      |  1 +
 gcc/testsuite/g++.dg/init/value3.C                     |  1 +
 gcc/testsuite/g++.dg/ipa/devirt-29.C                   |  1 +
 gcc/testsuite/g++.dg/ipa/pr85549.C                     |  1 +
 gcc/testsuite/g++.dg/lookup/missing-std-include-3.C    |  1 +
 gcc/testsuite/g++.dg/lookup/pr21802.C                  |  2 ++
 gcc/testsuite/g++.dg/lto/20091022-2_0.C                |  1 +
 gcc/testsuite/g++.dg/lto/20091219_0.C                  |  1 +
 gcc/testsuite/g++.dg/lto/pr66180_0.C                   |  2 ++
 gcc/testsuite/g++.dg/lto/pr80287_0.C                   |  1 +
 gcc/testsuite/g++.dg/lto/pr89358_0.C                   |  1 +
 gcc/testsuite/g++.dg/lto/pr89358_1.C                   |  1 +
 gcc/testsuite/g++.dg/modules/binding-1_a.H             |  1 +
 gcc/testsuite/g++.dg/modules/binding-1_b.H             |  1 +
 gcc/testsuite/g++.dg/modules/contracts-1_a.C           |  1 +
 gcc/testsuite/g++.dg/modules/contracts-1_b.C           |  1 +
 gcc/testsuite/g++.dg/modules/contracts-2_a.C           |  1 +
 gcc/testsuite/g++.dg/modules/contracts-2_b.C           |  1 +
 gcc/testsuite/g++.dg/modules/contracts-3_a.C           |  1 +
 gcc/testsuite/g++.dg/modules/contracts-3_b.C           |  1 +
 gcc/testsuite/g++.dg/modules/contracts-4_a.C           |  1 +
 gcc/testsuite/g++.dg/modules/contracts-4_d.C           |  1 +
 gcc/testsuite/g++.dg/modules/global-3_a.C              |  1 +
 gcc/testsuite/g++.dg/modules/hello-1_a.C               |  1 +
 gcc/testsuite/g++.dg/modules/hello-2_a.C               |  1 +
 gcc/testsuite/g++.dg/modules/hello-2_b.C               |  1 +
 gcc/testsuite/g++.dg/modules/iostream-1_a.H            |  1 +
 gcc/testsuite/g++.dg/modules/p1689-2.C                 |  1 +
 gcc/testsuite/g++.dg/modules/part-5_c.C                |  1 +
 gcc/testsuite/g++.dg/modules/pr99023_a.X               |  1 +
 gcc/testsuite/g++.dg/modules/pr99166_a.X               |  1 +
 gcc/testsuite/g++.dg/modules/pr99166_b.C               |  2 ++
 gcc/testsuite/g++.dg/modules/pr99425-2_a.X             |  1 +
 gcc/testsuite/g++.dg/modules/pr99425-2_b.X             |  1 +
 gcc/testsuite/g++.dg/modules/string-1_a.H              |  1 +
 gcc/testsuite/g++.dg/modules/string-1_b.C              |  1 +
 gcc/testsuite/g++.dg/modules/string-view1.C            |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-1_a.H       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-1_b.C       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-2_a.H       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-2_b.C       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-3_a.H       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-3_b.C       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-4_a.H       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-4_b.C       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-5_a.H       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-5_b.C       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-6_a.H       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-6_b.C       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-7_a.H       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header-7_b.C       |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header_a.H         |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-header_b.C         |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-tr1_a.H            |  1 +
 gcc/testsuite/g++.dg/modules/xtreme-tr1_b.C            |  1 +
 gcc/testsuite/g++.dg/opt/builtins2.C                   |  1 +
 gcc/testsuite/g++.dg/opt/dtor4-aux.cc                  |  1 +
 gcc/testsuite/g++.dg/opt/dtor4.C                       |  1 +
 gcc/testsuite/g++.dg/opt/eh4.C                         |  1 +
 gcc/testsuite/g++.dg/opt/nrv17.C                       |  1 +
 gcc/testsuite/g++.dg/opt/pr102970.C                    |  1 +
 gcc/testsuite/g++.dg/opt/pr103989.C                    |  1 +
 gcc/testsuite/g++.dg/opt/pr109434.C                    |  1 +
 gcc/testsuite/g++.dg/opt/pr110879.C                    |  1 +
 gcc/testsuite/g++.dg/opt/pr15551.C                     |  1 +
 gcc/testsuite/g++.dg/opt/pr30965.C                     |  1 +
 gcc/testsuite/g++.dg/opt/pr65074.C                     |  1 +
 gcc/testsuite/g++.dg/opt/pr66119.C                     |  1 +
 gcc/testsuite/g++.dg/opt/pr77844.C                     |  1 +
 gcc/testsuite/g++.dg/opt/pr80385.C                     |  1 +
 gcc/testsuite/g++.dg/opt/pr85393.C                     |  1 +
 gcc/testsuite/g++.dg/opt/pr94223.C                     |  1 +
 gcc/testsuite/g++.dg/opt/reload3.C                     |  1 +
 gcc/testsuite/g++.dg/other/final7.C                    |  1 +
 gcc/testsuite/g++.dg/other/i386-1.C                    |  1 +
 gcc/testsuite/g++.dg/other/i386-11.C                   |  1 +
 gcc/testsuite/g++.dg/other/i386-2.C                    |  2 ++
 gcc/testsuite/g++.dg/other/i386-3.C                    |  2 ++
 gcc/testsuite/g++.dg/other/i386-4.C                    |  1 +
 gcc/testsuite/g++.dg/other/i386-7.C                    |  1 +
 gcc/testsuite/g++.dg/other/i386-8.C                    |  1 +
 gcc/testsuite/g++.dg/other/mmintrin.C                  |  1 +
 gcc/testsuite/g++.dg/other/pr34435.C                   |  1 +
 gcc/testsuite/g++.dg/other/pr40446.C                   |  1 +
 gcc/testsuite/g++.dg/other/pr40561.C                   |  1 +
 gcc/testsuite/g++.dg/other/pr49133.C                   |  1 +
 gcc/testsuite/g++.dg/other/ucnid-1-utf8.C              |  1 +
 gcc/testsuite/g++.dg/other/ucnid-1.C                   |  1 +
 gcc/testsuite/g++.dg/parse/lookup1.C                   |  1 +
 gcc/testsuite/g++.dg/parse/parse5.C                    |  1 +
 gcc/testsuite/g++.dg/pch/system-1.C                    |  2 ++
 gcc/testsuite/g++.dg/pch/system-1.Hs                   |  2 ++
 gcc/testsuite/g++.dg/pch/system-2.C                    |  2 ++
 gcc/testsuite/g++.dg/pch/system-2.Hs                   |  2 ++
 gcc/testsuite/g++.dg/pr100253.C                        |  1 +
 gcc/testsuite/g++.dg/pr104547.C                        |  1 +
 gcc/testsuite/g++.dg/pr107087.C                        |  1 +
 gcc/testsuite/g++.dg/pr71488.C                         |  1 +
 gcc/testsuite/g++.dg/pr71655.C                         |  1 +
 gcc/testsuite/g++.dg/pr79095-3.C                       |  1 +
 gcc/testsuite/g++.dg/pr80481.C                         |  1 +
 gcc/testsuite/g++.dg/pr83239.C                         |  1 +
 gcc/testsuite/g++.dg/pr99966.C                         |  1 +
 gcc/testsuite/g++.dg/rtti/typeid4.C                    |  1 +
 gcc/testsuite/g++.dg/spellcheck-inttypes.C             |  1 +
 gcc/testsuite/g++.dg/template/friend10.C               |  1 +
 gcc/testsuite/g++.dg/template/pr69961a.C               |  1 +
 gcc/testsuite/g++.dg/template/show-template-tree-3.C   |  1 +
 gcc/testsuite/g++.dg/tm/inherit2.C                     |  1 +
 gcc/testsuite/g++.dg/tm/pr46270.C                      |  1 +
 gcc/testsuite/g++.dg/torture/alias-1.C                 |  1 +
 gcc/testsuite/g++.dg/torture/builtin-location.C        |  1 +
 gcc/testsuite/g++.dg/torture/pr10148.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr103669.C                |  1 +
 gcc/testsuite/g++.dg/torture/pr104601.C                |  1 +
 gcc/testsuite/g++.dg/torture/pr106922.C                |  1 +
 gcc/testsuite/g++.dg/torture/pr111019.C                |  1 +
 gcc/testsuite/g++.dg/torture/pr33572.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr33735.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr34099.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr39417.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr44972.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr46364.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr49628.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr49938.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr51903.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr54498.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr60750.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr67600.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr82084.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr86763.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr91334.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr91606.C                 |  1 +
 gcc/testsuite/g++.dg/torture/pr95493-1.C               |  1 +
 gcc/testsuite/g++.dg/tree-ssa/allocator-opt1.C         |  1 +
 gcc/testsuite/g++.dg/tree-ssa/copyprop.C               |  1 +
 gcc/testsuite/g++.dg/tree-ssa/empty-loop.C             |  1 +
 gcc/testsuite/g++.dg/tree-ssa/initlist-opt1.C          |  1 +
 gcc/testsuite/g++.dg/tree-ssa/initlist-opt2.C          |  1 +
 gcc/testsuite/g++.dg/tree-ssa/initlist-opt3.C          |  1 +
 gcc/testsuite/g++.dg/tree-ssa/initlist-opt5.C          |  1 +
 gcc/testsuite/g++.dg/tree-ssa/loop-cond-split-1.C      |  1 +
 gcc/testsuite/g++.dg/tree-ssa/loop-split-1.C           |  2 ++
 gcc/testsuite/g++.dg/tree-ssa/pr101839.C               |  1 +
 gcc/testsuite/g++.dg/tree-ssa/pr102216-2.C             |  2 ++
 gcc/testsuite/g++.dg/tree-ssa/pr104529.C               |  1 +
 gcc/testsuite/g++.dg/tree-ssa/pr109849.C               |  1 +
 gcc/testsuite/g++.dg/tree-ssa/pr14703.C                |  1 +
 gcc/testsuite/g++.dg/tree-ssa/pr19786.C                |  1 +
 gcc/testsuite/g++.dg/tree-ssa/pr20458.C                |  1 +
 gcc/testsuite/g++.dg/tree-ssa/pr46228.C                |  1 +
 gcc/testsuite/g++.dg/tree-ssa/pr63841.C                |  1 +
 gcc/testsuite/g++.dg/tree-ssa/pr69336.C                |  1 +
 gcc/testsuite/g++.dg/tree-ssa/pr78847.C                |  1 +
 gcc/testsuite/g++.dg/tree-ssa/pr95638.C                |  1 +
 gcc/testsuite/g++.dg/uninit-pr105937.C                 |  1 +
 gcc/testsuite/g++.dg/vect/pr102421.cc                  |  1 +
 gcc/testsuite/g++.dg/vect/pr105053.cc                  |  1 +
 gcc/testsuite/g++.dg/vect/pr33426-ivdep-4.cc           |  1 +
 gcc/testsuite/g++.dg/vect/pr64410.cc                   |  1 +
 gcc/testsuite/g++.dg/vect/slp-pr87105.cc               |  1 +
 gcc/testsuite/g++.dg/vect/slp-pr98855.cc               |  1 +
 gcc/testsuite/g++.dg/vect/vect-novector-pragma.cc      |  1 +
 gcc/testsuite/g++.dg/warn/Warray-bounds-27.C           |  1 +
 gcc/testsuite/g++.dg/warn/Wdangling-pointer-pr110055.C |  1 +
 gcc/testsuite/g++.dg/warn/Wdangling-reference10.C      |  1 +
 gcc/testsuite/g++.dg/warn/Wdangling-reference14.C      |  1 +
 gcc/testsuite/g++.dg/warn/Wdangling-reference17.C      |  1 +
 gcc/testsuite/g++.dg/warn/Wdangling-reference4.C       |  1 +
 gcc/testsuite/g++.dg/warn/Wdangling-reference5.C       |  1 +
 gcc/testsuite/g++.dg/warn/Wfree-nonheap-object-3.C     |  3 ++-
 gcc/testsuite/g++.dg/warn/Winline-3.C                  |  1 +
 gcc/testsuite/g++.dg/warn/Wmemset-elt-size1.C          |  1 +
 gcc/testsuite/g++.dg/warn/Wparentheses-34.C            |  1 +
 .../g++.dg/warn/Wstrict-aliasing-bogus-escape-2.C      |  1 +
 .../g++.dg/warn/Wstrict-aliasing-bogus-escape.C        |  1 +
 gcc/testsuite/g++.dg/warn/Wstringop-overflow-6.C       |  3 ++-
 gcc/testsuite/g++.dg/warn/Wstringop-overflow-8.C       |  1 +
 gcc/testsuite/g++.dg/warn/Wstringop-overread-1.C       |  1 +
 gcc/testsuite/g++.dg/warn/Wsystem-headers1a.C          |  1 +
 gcc/testsuite/g++.dg/warn/Wuninitialized-33.C          |  1 +
 gcc/testsuite/g++.dg/warn/Wuninitialized-pr111123-1.C  |  1 +
 gcc/testsuite/g++.dg/warn/format1.C                    |  1 +
 gcc/testsuite/g++.dg/warn/huge-val1.C                  |  1 +
 gcc/testsuite/g++.dg/warn/noreturn-1.C                 |  1 +
 gcc/testsuite/g++.dg/warn/string1.C                    |  1 +
 gcc/testsuite/g++.dg/warn/uninit-pr105562.C            |  1 +
 gcc/testsuite/g++.old-deja/g++.abi/arraynew.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.abi/cxa_vec.C           |  2 ++
 gcc/testsuite/g++.old-deja/g++.benjamin/15071.C        |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/copy9.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/crash15.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/crash20.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/crash30.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/crash38.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/crash39.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/crash49.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/crash52.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/crash62.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/cvt1.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/err-msg3.C      |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/nest21.C        |  1 +
 gcc/testsuite/g++.old-deja/g++.brendan/new3.C          |  2 ++
 gcc/testsuite/g++.old-deja/g++.brendan/ptolemy2.C      |  1 +
 gcc/testsuite/g++.old-deja/g++.eh/new1.C               |  1 +
 gcc/testsuite/g++.old-deja/g++.eh/new2.C               |  1 +
 gcc/testsuite/g++.old-deja/g++.jason/2371.C            |  1 +
 gcc/testsuite/g++.old-deja/g++.jason/template24.C      |  1 +
 gcc/testsuite/g++.old-deja/g++.jason/template31.C      |  1 +
 gcc/testsuite/g++.old-deja/g++.jason/template44.C      |  2 ++
 gcc/testsuite/g++.old-deja/g++.jason/typeid1.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.law/arg1.C              |  1 +
 gcc/testsuite/g++.old-deja/g++.law/arg8.C              |  1 +
 gcc/testsuite/g++.old-deja/g++.law/arm12.C             |  1 +
 gcc/testsuite/g++.old-deja/g++.law/arm13.C             |  2 ++
 gcc/testsuite/g++.old-deja/g++.law/arm9.C              |  1 +
 gcc/testsuite/g++.old-deja/g++.law/bad-error7.C        |  1 +
 gcc/testsuite/g++.old-deja/g++.law/code-gen5.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.law/ctors10.C           |  1 +
 gcc/testsuite/g++.old-deja/g++.law/ctors12.C           |  1 +
 gcc/testsuite/g++.old-deja/g++.law/ctors13.C           |  1 +
 gcc/testsuite/g++.old-deja/g++.law/ctors17.C           |  1 +
 gcc/testsuite/g++.old-deja/g++.law/ctors6.C            |  1 +
 gcc/testsuite/g++.old-deja/g++.law/cvt16.C             |  1 +
 gcc/testsuite/g++.old-deja/g++.law/cvt2.C              |  1 +
 gcc/testsuite/g++.old-deja/g++.law/cvt7.C              |  1 +
 gcc/testsuite/g++.old-deja/g++.law/except5.C           |  1 +
 gcc/testsuite/g++.old-deja/g++.law/missed-error2.C     |  1 +
 gcc/testsuite/g++.old-deja/g++.law/nest3.C             |  1 +
 gcc/testsuite/g++.old-deja/g++.law/operators32.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.law/operators4.C        |  1 +
 gcc/testsuite/g++.old-deja/g++.law/scope2.C            |  2 ++
 gcc/testsuite/g++.old-deja/g++.law/vbase1.C            |  1 +
 gcc/testsuite/g++.old-deja/g++.law/virtual3.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.law/visibility1.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.law/visibility10.C      |  1 +
 gcc/testsuite/g++.old-deja/g++.law/visibility13.C      |  1 +
 gcc/testsuite/g++.old-deja/g++.law/visibility17.C      |  1 +
 gcc/testsuite/g++.old-deja/g++.law/visibility2.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.law/visibility22.C      |  1 +
 gcc/testsuite/g++.old-deja/g++.law/visibility25.C      |  1 +
 gcc/testsuite/g++.old-deja/g++.law/visibility7.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.law/weak.C              |  2 ++
 gcc/testsuite/g++.old-deja/g++.martin/new1.C           |  1 +
 gcc/testsuite/g++.old-deja/g++.mike/dyncast7.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.mike/eh13.C             |  1 +
 gcc/testsuite/g++.old-deja/g++.mike/eh2.C              |  1 +
 gcc/testsuite/g++.old-deja/g++.mike/eh47.C             |  1 +
 gcc/testsuite/g++.old-deja/g++.mike/net34.C            |  1 +
 gcc/testsuite/g++.old-deja/g++.mike/net46.C            |  1 +
 gcc/testsuite/g++.old-deja/g++.mike/ns15.C             |  1 +
 gcc/testsuite/g++.old-deja/g++.mike/p658.C             |  1 +
 gcc/testsuite/g++.old-deja/g++.mike/p710.C             |  2 ++
 gcc/testsuite/g++.old-deja/g++.mike/p9706.C            |  1 +
 gcc/testsuite/g++.old-deja/g++.mike/rtti1.C            |  1 +
 gcc/testsuite/g++.old-deja/g++.ns/using4.C             |  1 +
 gcc/testsuite/g++.old-deja/g++.ns/using6.C             |  1 +
 gcc/testsuite/g++.old-deja/g++.oliva/new1.C            |  2 ++
 gcc/testsuite/g++.old-deja/g++.other/defarg6.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.other/delete8.C         |  2 ++
 gcc/testsuite/g++.old-deja/g++.other/headers1.C        |  1 +
 gcc/testsuite/g++.old-deja/g++.other/init9.C           |  1 +
 gcc/testsuite/g++.old-deja/g++.other/inline14.C        |  1 +
 gcc/testsuite/g++.old-deja/g++.other/inline2.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.other/inline7.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.other/inline8.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.other/optimize2.C       |  1 +
 gcc/testsuite/g++.old-deja/g++.other/sibcall1.C        |  1 +
 gcc/testsuite/g++.old-deja/g++.other/unchanging1.C     |  1 +
 gcc/testsuite/g++.old-deja/g++.pt/crash68.C            |  1 +
 gcc/testsuite/g++.old-deja/g++.pt/memtemp100.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb109.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb113.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb115.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb124.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb127.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb129.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb129a.C        |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb130.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb132.C         |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb15.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb21.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb24.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb27.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb28.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb29.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb3.C           |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb30.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb31.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb33.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb36.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb39.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb4.C           |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb41.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb43.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb44.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb46.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb54.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb55.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb59.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb60.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb62.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb66.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb7.C           |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb73.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb77.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.robertl/eb79.C          |  1 +
 gcc/testsuite/g++.old-deja/g++.warn/iomanip.C          |  1 +
 gcc/testsuite/g++.target/i386/avx-pr54700-1.C          |  1 +
 gcc/testsuite/g++.target/i386/avx-pr54700-2.C          |  1 +
 gcc/testsuite/g++.target/i386/avx2-pr54700-1.C         |  1 +
 gcc/testsuite/g++.target/i386/avx2-pr54700-2.C         |  1 +
 gcc/testsuite/g++.target/i386/avx512bw-pr96246-2.C     |  1 +
 gcc/testsuite/g++.target/i386/avx512vl-pr54700-1a.C    |  1 +
 gcc/testsuite/g++.target/i386/avx512vl-pr54700-1b.C    |  1 +
 gcc/testsuite/g++.target/i386/avx512vl-pr54700-2a.C    |  1 +
 gcc/testsuite/g++.target/i386/avx512vl-pr54700-2b.C    |  1 +
 gcc/testsuite/g++.target/i386/avx512vl-pr96246-2.C     |  1 +
 gcc/testsuite/g++.target/i386/mvc4.C                   |  1 +
 gcc/testsuite/g++.target/i386/pr100885.C               |  1 +
 gcc/testsuite/g++.target/i386/pr102166.C               |  1 +
 gcc/testsuite/g++.target/i386/pr103750-fwprop-1.C      |  1 +
 gcc/testsuite/g++.target/i386/pr105593.C               |  1 +
 gcc/testsuite/g++.target/i386/pr105638.C               |  1 +
 gcc/testsuite/g++.target/i386/pr110170.C               |  2 ++
 gcc/testsuite/g++.target/i386/pr112443.C               |  1 +
 gcc/testsuite/g++.target/i386/pr113560.C               |  1 +
 gcc/testsuite/g++.target/i386/pr80566-1.C              |  1 +
 gcc/testsuite/g++.target/i386/pr80566-2.C              |  1 +
 gcc/testsuite/g++.target/i386/pr88152.C                |  1 +
 gcc/testsuite/g++.target/i386/pr88998.C                |  1 +
 gcc/testsuite/g++.target/i386/pr94046-1.C              |  1 +
 gcc/testsuite/g++.target/i386/pr94046-2.C              |  1 +
 gcc/testsuite/g++.target/i386/sse4_1-pr54700-1.C       |  1 +
 gcc/testsuite/g++.target/i386/sse4_1-pr54700-2.C       |  1 +
 gcc/testsuite/lib/target-supports.exp                  | 18 ++++++++++++++++++
 850 files changed, 986 insertions(+), 6 deletions(-)

diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi
index 8e4e59ac44c7..1eadf7563acf 100644
--- a/gcc/doc/sourcebuild.texi
+++ b/gcc/doc/sourcebuild.texi
@@ -2766,6 +2766,10 @@ Target is @samp{freestanding} as defined in section 4 of the C99 standard.
 Effectively, it is a target which supports no extra headers or libraries
 other than what is considered essential.
 
+@item hostedlib
+Target is not @samp{freestanding}, and, if the language is C++,
+@code{libstdc++}'s hosted mode is not disabled.
+
 @item gettimeofday
 Target supports @code{gettimeofday}.
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/allocation-size-1.c b/gcc/testsuite/c-c++-common/analyzer/allocation-size-1.c
index 05efc4f8028a..04d8c77a239b 100644
--- a/gcc/testsuite/c-c++-common/analyzer/allocation-size-1.c
+++ b/gcc/testsuite/c-c++-common/analyzer/allocation-size-1.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdint.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/allocation-size-2.c b/gcc/testsuite/c-c++-common/analyzer/allocation-size-2.c
index ff4cb5634695..c43f441b3667 100644
--- a/gcc/testsuite/c-c++-common/analyzer/allocation-size-2.c
+++ b/gcc/testsuite/c-c++-common/analyzer/allocation-size-2.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-fanalyzer-fine-grained" }
+   { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } }
    -fanalyzer-fine-grained is currently required; see PR analyzer/107851.  */
 
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/allocation-size-3.c b/gcc/testsuite/c-c++-common/analyzer/allocation-size-3.c
index 4e99e881dff7..9d06d4b30d21 100644
--- a/gcc/testsuite/c-c++-common/analyzer/allocation-size-3.c
+++ b/gcc/testsuite/c-c++-common/analyzer/allocation-size-3.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-fanalyzer-fine-grained" }
+   { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } }
    -fanalyzer-fine-grained is currently required; see PR analyzer/107851.  */
 
 /* { dg-additional-options -Wno-analyzer-out-of-bounds } */
diff --git a/gcc/testsuite/c-c++-common/analyzer/allocation-size-4.c b/gcc/testsuite/c-c++-common/analyzer/allocation-size-4.c
index 7d07ba67316c..3dbf13e40123 100644
--- a/gcc/testsuite/c-c++-common/analyzer/allocation-size-4.c
+++ b/gcc/testsuite/c-c++-common/analyzer/allocation-size-4.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 #include <stdint.h>
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/analyzer-verbosity-0.c b/gcc/testsuite/c-c++-common/analyzer/analyzer-verbosity-0.c
index 24fe84deb14f..e8edf197979f 100644
--- a/gcc/testsuite/c-c++-common/analyzer/analyzer-verbosity-0.c
+++ b/gcc/testsuite/c-c++-common/analyzer/analyzer-verbosity-0.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-fdiagnostics-show-line-numbers -fdiagnostics-path-format=inline-events -fdiagnostics-show-caret -fanalyzer-verbosity=0" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
 /* { dg-enable-nn-line-numbers "" } */
 
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/analyzer-verbosity-1.c b/gcc/testsuite/c-c++-common/analyzer/analyzer-verbosity-1.c
index e13437052584..886e2aba7125 100644
--- a/gcc/testsuite/c-c++-common/analyzer/analyzer-verbosity-1.c
+++ b/gcc/testsuite/c-c++-common/analyzer/analyzer-verbosity-1.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-fdiagnostics-show-line-numbers -fdiagnostics-path-format=inline-events -fdiagnostics-show-caret -fanalyzer-verbosity=1" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
 /* { dg-enable-nn-line-numbers "" } */
 
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/analyzer-verbosity-2.c b/gcc/testsuite/c-c++-common/analyzer/analyzer-verbosity-2.c
index 0fd865485df9..4ce62ac0d3e8 100644
--- a/gcc/testsuite/c-c++-common/analyzer/analyzer-verbosity-2.c
+++ b/gcc/testsuite/c-c++-common/analyzer/analyzer-verbosity-2.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-fdiagnostics-show-line-numbers -fdiagnostics-path-format=inline-events -fdiagnostics-show-caret -fanalyzer-verbosity=2" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
 /* { dg-enable-nn-line-numbers "" } */
 
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/analyzer-verbosity-3.c b/gcc/testsuite/c-c++-common/analyzer/analyzer-verbosity-3.c
index ac699ec544e1..018bb2803881 100644
--- a/gcc/testsuite/c-c++-common/analyzer/analyzer-verbosity-3.c
+++ b/gcc/testsuite/c-c++-common/analyzer/analyzer-verbosity-3.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-fdiagnostics-show-line-numbers -fdiagnostics-path-format=inline-events -fdiagnostics-show-caret -fanalyzer-verbosity=3" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
 /* { dg-enable-nn-line-numbers "" } */
 
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/call-summaries-1.c b/gcc/testsuite/c-c++-common/analyzer/call-summaries-1.c
index a64b230cef32..643a31642915 100644
--- a/gcc/testsuite/c-c++-common/analyzer/call-summaries-1.c
+++ b/gcc/testsuite/c-c++-common/analyzer/call-summaries-1.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-fanalyzer-call-summaries" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/call-summaries-malloc.c b/gcc/testsuite/c-c++-common/analyzer/call-summaries-malloc.c
index 15c4c2e8fccc..6522c37e108b 100644
--- a/gcc/testsuite/c-c++-common/analyzer/call-summaries-malloc.c
+++ b/gcc/testsuite/c-c++-common/analyzer/call-summaries-malloc.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-fanalyzer-call-summaries --param analyzer-min-snodes-for-call-summary=0" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 /* There need to be at least two calls to a function for the
    call-summarization code to be used.
diff --git a/gcc/testsuite/c-c++-common/analyzer/callbacks-1.c b/gcc/testsuite/c-c++-common/analyzer/callbacks-1.c
index 52c8fde540a7..763027c714ae 100644
--- a/gcc/testsuite/c-c++-common/analyzer/callbacks-1.c
+++ b/gcc/testsuite/c-c++-common/analyzer/callbacks-1.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
+
 /* Reproducer for PR analyzer/97258: we should report the double-free
    inside a static callback if the callback escapes.  */
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/callbacks-2.c b/gcc/testsuite/c-c++-common/analyzer/callbacks-2.c
index 98915ee617bd..772187311b76 100644
--- a/gcc/testsuite/c-c++-common/analyzer/callbacks-2.c
+++ b/gcc/testsuite/c-c++-common/analyzer/callbacks-2.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
+
 /* Reproducer for PR analyzer/97258: we should report the double-free
    inside a static callback if the callback is accessible via a global
    initializer.  */
diff --git a/gcc/testsuite/c-c++-common/analyzer/capacity-1.c b/gcc/testsuite/c-c++-common/analyzer/capacity-1.c
index cfee1159826a..76905a623f21 100644
--- a/gcc/testsuite/c-c++-common/analyzer/capacity-1.c
+++ b/gcc/testsuite/c-c++-common/analyzer/capacity-1.c
@@ -1,5 +1,6 @@
 /* { dg-require-effective-target alloca } */
 /* { dg-skip-if "" { powerpc*-*-aix* } } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 #include "../../gcc.dg/analyzer/analyzer-decls.h"
diff --git a/gcc/testsuite/c-c++-common/analyzer/capacity-2.c b/gcc/testsuite/c-c++-common/analyzer/capacity-2.c
index fbdb61a991e0..7d2de4ed8ad6 100644
--- a/gcc/testsuite/c-c++-common/analyzer/capacity-2.c
+++ b/gcc/testsuite/c-c++-common/analyzer/capacity-2.c
@@ -1,4 +1,5 @@
 /* { dg-skip-if "" { powerpc*-*-aix* } } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib size_t" { ! hostedlib } } */
 
 #include <stdlib.h>
 #include "analyzer-decls.h"
diff --git a/gcc/testsuite/c-c++-common/analyzer/capacity-3.c b/gcc/testsuite/c-c++-common/analyzer/capacity-3.c
index c099ff5725d8..2fcf70791f4c 100644
--- a/gcc/testsuite/c-c++-common/analyzer/capacity-3.c
+++ b/gcc/testsuite/c-c++-common/analyzer/capacity-3.c
@@ -1,4 +1,5 @@
 /* { dg-require-effective-target alloca } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib size_t" { ! hostedlib } } */
 
 #include <stdlib.h>
 #include "analyzer-decls.h"
diff --git a/gcc/testsuite/c-c++-common/analyzer/compound-assignment-1.c b/gcc/testsuite/c-c++-common/analyzer/compound-assignment-1.c
index b7389e280837..9ff95d35d18d 100644
--- a/gcc/testsuite/c-c++-common/analyzer/compound-assignment-1.c
+++ b/gcc/testsuite/c-c++-common/analyzer/compound-assignment-1.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 struct ptr_wrapper
diff --git a/gcc/testsuite/c-c++-common/analyzer/data-model-14.c b/gcc/testsuite/c-c++-common/analyzer/data-model-14.c
index 1dbcb7011230..9400ae2fd7ab 100644
--- a/gcc/testsuite/c-c++-common/analyzer/data-model-14.c
+++ b/gcc/testsuite/c-c++-common/analyzer/data-model-14.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 void *global_ptr;
diff --git a/gcc/testsuite/c-c++-common/analyzer/data-model-20.c b/gcc/testsuite/c-c++-common/analyzer/data-model-20.c
index 59f62853ad6a..dd7996bd1605 100644
--- a/gcc/testsuite/c-c++-common/analyzer/data-model-20.c
+++ b/gcc/testsuite/c-c++-common/analyzer/data-model-20.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-Wno-analyzer-too-complex" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/data-model-5d.c b/gcc/testsuite/c-c++-common/analyzer/data-model-5d.c
index b4d77a939bc9..a86d5060c7a6 100644
--- a/gcc/testsuite/c-c++-common/analyzer/data-model-5d.c
+++ b/gcc/testsuite/c-c++-common/analyzer/data-model-5d.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 /* A toy re-implementation of CPython's object model.  */
 
 #include <stddef.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/disabling.c b/gcc/testsuite/c-c++-common/analyzer/disabling.c
index a696d1e021e0..6f3a50e11960 100644
--- a/gcc/testsuite/c-c++-common/analyzer/disabling.c
+++ b/gcc/testsuite/c-c++-common/analyzer/disabling.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
+
 /* Verify that we can override -fanalyzer with -fno-analyzer.  */
 /* { dg-additional-options "-fno-analyzer" } */
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/dump-state.c b/gcc/testsuite/c-c++-common/analyzer/dump-state.c
index 618a5a9d7810..09490be0cc32 100644
--- a/gcc/testsuite/c-c++-common/analyzer/dump-state.c
+++ b/gcc/testsuite/c-c++-common/analyzer/dump-state.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 /* Verify that __analyzer_dump_state works as expected.  */
 
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/edges-2.c b/gcc/testsuite/c-c++-common/analyzer/edges-2.c
index 847a70883fb6..7e4543c24c30 100644
--- a/gcc/testsuite/c-c++-common/analyzer/edges-2.c
+++ b/gcc/testsuite/c-c++-common/analyzer/edges-2.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 int foo ();
diff --git a/gcc/testsuite/c-c++-common/analyzer/first-field-2.c b/gcc/testsuite/c-c++-common/analyzer/first-field-2.c
index 8661e6e9efd0..52b9df23ae4e 100644
--- a/gcc/testsuite/c-c++-common/analyzer/first-field-2.c
+++ b/gcc/testsuite/c-c++-common/analyzer/first-field-2.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 /* A toy re-implementation of CPython's object model.  */
 
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/flex-with-call-summaries.c b/gcc/testsuite/c-c++-common/analyzer/flex-with-call-summaries.c
index cbb953ad06ac..b4124c963d18 100644
--- a/gcc/testsuite/c-c++-common/analyzer/flex-with-call-summaries.c
+++ b/gcc/testsuite/c-c++-common/analyzer/flex-with-call-summaries.c
@@ -7,6 +7,7 @@
 /* { dg-additional-options "-Wno-analyzer-too-complex" } */
 /* { dg-additional-options "-Wno-analyzer-symbol-too-complex" } */
 /* { dg-additional-options "-D_POSIX_SOURCE" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 /* A lexical scanner generated by flex */
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/flex-without-call-summaries.c b/gcc/testsuite/c-c++-common/analyzer/flex-without-call-summaries.c
index c6ecb25d25d5..092d78486219 100644
--- a/gcc/testsuite/c-c++-common/analyzer/flex-without-call-summaries.c
+++ b/gcc/testsuite/c-c++-common/analyzer/flex-without-call-summaries.c
@@ -6,6 +6,8 @@
 /* { dg-additional-options "-Wno-analyzer-too-complex" } */
 /* { dg-additional-options "-D_POSIX_SOURCE" } */
 
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 
 /* A lexical scanner generated by flex */
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/flexible-array-member-1.c b/gcc/testsuite/c-c++-common/analyzer/flexible-array-member-1.c
index 82dbcec53592..c04a5fbe0ecb 100644
--- a/gcc/testsuite/c-c++-common/analyzer/flexible-array-member-1.c
+++ b/gcc/testsuite/c-c++-common/analyzer/flexible-array-member-1.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 #include <string.h>
 #include "../../gcc.dg/analyzer/analyzer-decls.h"
diff --git a/gcc/testsuite/c-c++-common/analyzer/function-ptr-2.c b/gcc/testsuite/c-c++-common/analyzer/function-ptr-2.c
index 0a1e845d6c55..76f5bd0c2455 100644
--- a/gcc/testsuite/c-c++-common/analyzer/function-ptr-2.c
+++ b/gcc/testsuite/c-c++-common/analyzer/function-ptr-2.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
+
 #include <stdlib.h>
 #include "../../gcc.dg/analyzer/analyzer-decls.h"
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/function-ptr-3.c b/gcc/testsuite/c-c++-common/analyzer/function-ptr-3.c
index 348ee4a0cb3f..62ba89ee3d96 100644
--- a/gcc/testsuite/c-c++-common/analyzer/function-ptr-3.c
+++ b/gcc/testsuite/c-c++-common/analyzer/function-ptr-3.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib size_t" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 typedef void *(*alloc_func_t) (size_t);
diff --git a/gcc/testsuite/c-c++-common/analyzer/function-ptr-4.c b/gcc/testsuite/c-c++-common/analyzer/function-ptr-4.c
index 016351a83f6b..1ba080d64334 100644
--- a/gcc/testsuite/c-c++-common/analyzer/function-ptr-4.c
+++ b/gcc/testsuite/c-c++-common/analyzer/function-ptr-4.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
+
 /* Test to see if the analyzer detect and analyze calls via 
    function pointers or not.  */
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/gzio.c b/gcc/testsuite/c-c++-common/analyzer/gzio.c
index 54efa77d0561..43511704e7c3 100644
--- a/gcc/testsuite/c-c++-common/analyzer/gzio.c
+++ b/gcc/testsuite/c-c++-common/analyzer/gzio.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 typedef struct z_stream_s {
   unsigned char *next_out;
diff --git a/gcc/testsuite/c-c++-common/analyzer/imprecise-floating-point-1.c b/gcc/testsuite/c-c++-common/analyzer/imprecise-floating-point-1.c
index cbe26589db00..b093a3c4d2ab 100644
--- a/gcc/testsuite/c-c++-common/analyzer/imprecise-floating-point-1.c
+++ b/gcc/testsuite/c-c++-common/analyzer/imprecise-floating-point-1.c
@@ -1,4 +1,5 @@
 /* { dg-require-effective-target alloca } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/leak-2.c b/gcc/testsuite/c-c++-common/analyzer/leak-2.c
index d12850cdc6a5..3bba4132a3c3 100644
--- a/gcc/testsuite/c-c++-common/analyzer/leak-2.c
+++ b/gcc/testsuite/c-c++-common/analyzer/leak-2.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 #include "../../gcc.dg/analyzer/analyzer-decls.h"
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/leak-3.c b/gcc/testsuite/c-c++-common/analyzer/leak-3.c
index d11cc03b36f0..a386d887f332 100644
--- a/gcc/testsuite/c-c++-common/analyzer/leak-3.c
+++ b/gcc/testsuite/c-c++-common/analyzer/leak-3.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 /* Reduced from Juliet 1.3's CWE415_Double_Free__malloc_free_char_67a.c
diff --git a/gcc/testsuite/c-c++-common/analyzer/leak-4.c b/gcc/testsuite/c-c++-common/analyzer/leak-4.c
index ba5f2d26f4b4..5ee3c310d5b6 100644
--- a/gcc/testsuite/c-c++-common/analyzer/leak-4.c
+++ b/gcc/testsuite/c-c++-common/analyzer/leak-4.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 /* Various tests of memory leak detection.  */
 
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/loop-0-up-to-n-by-1-with-iter-obj.c b/gcc/testsuite/c-c++-common/analyzer/loop-0-up-to-n-by-1-with-iter-obj.c
index 1b657697ef40..e169cd44aa17 100644
--- a/gcc/testsuite/c-c++-common/analyzer/loop-0-up-to-n-by-1-with-iter-obj.c
+++ b/gcc/testsuite/c-c++-common/analyzer/loop-0-up-to-n-by-1-with-iter-obj.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 #include "../../gcc.dg/analyzer/analyzer-decls.h"
diff --git a/gcc/testsuite/c-c++-common/analyzer/loop-3.c b/gcc/testsuite/c-c++-common/analyzer/loop-3.c
index 0bcf70746232..a07f0f4ce01c 100644
--- a/gcc/testsuite/c-c++-common/analyzer/loop-3.c
+++ b/gcc/testsuite/c-c++-common/analyzer/loop-3.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 void test(int c)
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-3.c b/gcc/testsuite/c-c++-common/analyzer/malloc-3.c
index f4e647b25aa2..becdafa7082c 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-3.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-3.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 /* Don't complain about leaks due to exiting from "main".  */
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-5.c b/gcc/testsuite/c-c++-common/analyzer/malloc-5.c
index 3b2a4527ab58..af7aca8e307c 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-5.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-5.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 void test (void)
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-CWE-401-example.c b/gcc/testsuite/c-c++-common/analyzer/malloc-CWE-401-example.c
index cfb5e86260c1..4caa5a001848 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-CWE-401-example.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-CWE-401-example.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 /* Example adapted from https://cwe.mitre.org/data/definitions/401.html
    which states "Copyright © 2006–2022, The MITRE Corporation. CWE, CWSS, CWRAF, and the CWE logo are trademarks of The MITRE Corporation."
    and which has this on:
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-CWE-415-examples.c b/gcc/testsuite/c-c++-common/analyzer/malloc-CWE-415-examples.c
index 51d878a17c36..4fb2788cf7b2 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-CWE-415-examples.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-CWE-415-examples.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 /* Example adapted from https://cwe.mitre.org/data/definitions/415.html
    which states "Copyright © 2006–2022, The MITRE Corporation. CWE, CWSS, CWRAF, and the CWE logo are trademarks of The MITRE Corporation."
    and which has this on:
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-CWE-416-examples.c b/gcc/testsuite/c-c++-common/analyzer/malloc-CWE-416-examples.c
index 3f5e5e260335..bf8878c4ec57 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-CWE-416-examples.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-CWE-416-examples.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 /* Examples adapted from https://cwe.mitre.org/data/definitions/416.html
    which states "Copyright © 2006–2022, The MITRE Corporation. CWE, CWSS, CWRAF, and the CWE logo are trademarks of The MITRE Corporation."
    and which has this on:
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-CWE-590-examples.c b/gcc/testsuite/c-c++-common/analyzer/malloc-CWE-590-examples.c
index 11ab017c12ae..f9d2da120907 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-CWE-590-examples.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-CWE-590-examples.c
@@ -1,5 +1,6 @@
 /* { dg-additional-options "-Wno-free-nonheap-object" } */
 /* { dg-require-effective-target size32plus } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
 
 /* Examples adapted from https://cwe.mitre.org/data/definitions/590.html
    which states "Copyright © 2006–2022, The MITRE Corporation. CWE, CWSS, CWRAF, and the CWE logo are trademarks of The MITRE Corporation."
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-callbacks.c b/gcc/testsuite/c-c++-common/analyzer/malloc-callbacks.c
index ccd6c01194f3..0ba4f3824c62 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-callbacks.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-callbacks.c
@@ -1,4 +1,5 @@
 /* { dg-require-effective-target alloca } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-dce.c b/gcc/testsuite/c-c++-common/analyzer/malloc-dce.c
index 1b4b8788b86b..7f5ec67877f4 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-dce.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-dce.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-O2" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-dedupe-1.c b/gcc/testsuite/c-c++-common/analyzer/malloc-dedupe-1.c
index 233ab485b5af..8653c67b08b5 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-dedupe-1.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-dedupe-1.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 extern void foo (void);
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-in-loop.c b/gcc/testsuite/c-c++-common/analyzer/malloc-in-loop.c
index b10715770243..e7179f09a1d1 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-in-loop.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-in-loop.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 #include "../../gcc.dg/analyzer/analyzer-decls.h"
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-1.c b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-1.c
index ad536ce5f02f..ee6e0e01876c 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-1.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-1.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 void *
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-10.c b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-10.c
index f3a5be51ff10..e3d4f6a3dee7 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-10.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-10.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 void
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-11.c b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-11.c
index 60501034bc32..e1bd58471a0a 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-11.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-11.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-fdiagnostics-show-line-numbers -fdiagnostics-path-format=inline-events -fdiagnostics-show-caret" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
 /* { dg-enable-nn-line-numbers "" } */
 
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-12.c b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-12.c
index 3813c9ae45ea..6bdbcc47672f 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-12.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-12.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 void recursive_free (void *ptr)
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-13a.c b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-13a.c
index d74ef59c7cf3..0b5304ea6d05 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-13a.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-13a.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-fanalyzer-verbosity=1" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-2.c b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-2.c
index 800dd63a031a..f2496c30553c 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-2.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-2.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-fanalyzer-verbosity=1" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-3.c b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-3.c
index 3dcfae8f0a29..7ff42b814400 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-3.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-3.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 void *
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-4.c b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-4.c
index bd03d607872e..535979c7e0a6 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-4.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-4.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 static void calls_free(int *q)
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-5.c b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-5.c
index ca8e6a511f5e..5c1cc1a0ef42 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-5.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-5.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 static int *calls_malloc(void)
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-6.c b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-6.c
index 62f8b55c3643..ad22a365fee0 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-6.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-6.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 void *
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-7.c b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-7.c
index 1fe70ddc8b2c..b80ae0359889 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-7.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-7.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 /**************************************************************************/
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-8-unchecked.c b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-8-unchecked.c
index 5bc8e57827b6..d2798bcf840b 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-8-unchecked.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-8-unchecked.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 /* Example of a multilevel wrapper around malloc, with an unchecked write.  */
 
 /* { dg-additional-options "-fdiagnostics-show-line-numbers -fdiagnostics-path-format=inline-events -fanalyzer-checker=malloc -fdiagnostics-show-caret" } */
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-9.c b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-9.c
index a0c78fd6c4ec..455f6ec82c49 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-9.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-ipa-9.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-fdiagnostics-path-format=none -fanalyzer-verbosity=1" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-macro-inline-events.c b/gcc/testsuite/c-c++-common/analyzer/malloc-macro-inline-events.c
index d00d076b209a..6714bf6cbdfa 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-macro-inline-events.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-macro-inline-events.c
@@ -1,6 +1,7 @@
 /* Test path-printing in the face of macros.  */
 
 /* { dg-additional-options "-fdiagnostics-show-line-numbers -fdiagnostics-path-format=inline-events -fdiagnostics-show-caret" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
 /* { dg-enable-nn-line-numbers "" } */
 
 #include "malloc-macro.h"
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-macro-separate-events.c b/gcc/testsuite/c-c++-common/analyzer/malloc-macro-separate-events.c
index 647b29c3aa40..2ab169e7e03e 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-macro-separate-events.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-macro-separate-events.c
@@ -1,6 +1,7 @@
 /* Test path-printing in the face of macros.  */
 
 /* { dg-additional-options "-fdiagnostics-path-format=separate-events" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
 
 #include "malloc-macro.h"
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-many-paths-3.c b/gcc/testsuite/c-c++-common/analyzer/malloc-many-paths-3.c
index e5d27a4a33a6..6ee30f3c86ab 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-many-paths-3.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-many-paths-3.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 extern int foo (void);
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-meaning-1.c b/gcc/testsuite/c-c++-common/analyzer/malloc-meaning-1.c
index 4964e25fe108..a0bc30ad4f23 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-meaning-1.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-meaning-1.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-fanalyzer-verbose-state-changes" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-paths-1.c b/gcc/testsuite/c-c++-common/analyzer/malloc-paths-1.c
index 0436928238c2..2c09c11f050c 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-paths-1.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-paths-1.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 /* Verify that we emit sane paths for state machine errors.  */
 
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-paths-2.c b/gcc/testsuite/c-c++-common/analyzer/malloc-paths-2.c
index 27098da1996d..af57085243a9 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-paths-2.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-paths-2.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
+
 /* Verify that we emit sane paths for state machine errors.  */
 
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-paths-3.c b/gcc/testsuite/c-c++-common/analyzer/malloc-paths-3.c
index 8f9e4cff6e2b..22fabbd1eafa 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-paths-3.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-paths-3.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 /* Verify that we emit sane paths for state machine errors.  */
 
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-paths-4.c b/gcc/testsuite/c-c++-common/analyzer/malloc-paths-4.c
index 7b7803eac45a..6976fce7ec66 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-paths-4.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-paths-4.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 /* Verify that we emit sane paths for state machine errors.  */
 
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-paths-5.c b/gcc/testsuite/c-c++-common/analyzer/malloc-paths-5.c
index ca8d22be7b0d..f03f97845c38 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-paths-5.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-paths-5.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdio.h>
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-paths-6.c b/gcc/testsuite/c-c++-common/analyzer/malloc-paths-6.c
index 1df6964544e2..dfed45df15d2 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-paths-6.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-paths-6.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 void test (void *ptr)
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-paths-7.c b/gcc/testsuite/c-c++-common/analyzer/malloc-paths-7.c
index f6b99e35a43e..766bbe7d99ad 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-paths-7.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-paths-7.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 extern int foo (void);
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-paths-8.c b/gcc/testsuite/c-c++-common/analyzer/malloc-paths-8.c
index 4988f53b94cb..ca48834c855c 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-paths-8.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-paths-8.c
@@ -1,5 +1,6 @@
 /* { dg-additional-options "-fanalyzer-transitivity" } */
 /* { dg-require-effective-target alloca } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stddef.h>
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-paths-9-noexcept.c b/gcc/testsuite/c-c++-common/analyzer/malloc-paths-9-noexcept.c
index f914ed6216fa..ee5c3dc21bbf 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-paths-9-noexcept.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-paths-9-noexcept.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-fdiagnostics-show-line-numbers -fdiagnostics-path-format=inline-events -fdiagnostics-show-caret -fno-exceptions" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 /* { dg-enable-nn-line-numbers "" } */
 
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-sarif-1.c b/gcc/testsuite/c-c++-common/analyzer/malloc-sarif-1.c
index 19ac89f2b67c..cee6788c266b 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-sarif-1.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-sarif-1.c
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-additional-options " -fno-diagnostics-json-formatting -fdiagnostics-format=sarif-file" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-vs-local-1a.c b/gcc/testsuite/c-c++-common/analyzer/malloc-vs-local-1a.c
index bf77862e67c4..4e408339d67d 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-vs-local-1a.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-vs-local-1a.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-fno-analyzer-call-summaries -fanalyzer-transitivity" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 #include "analyzer-decls.h"
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-vs-local-1b.c b/gcc/testsuite/c-c++-common/analyzer/malloc-vs-local-1b.c
index a30b8c0e0806..f4d63115929e 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-vs-local-1b.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-vs-local-1b.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-fanalyzer-call-summaries" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 #include "analyzer-decls.h"
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-vs-local-2.c b/gcc/testsuite/c-c++-common/analyzer/malloc-vs-local-2.c
index 9001fe66cd78..36ec5109ac7d 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-vs-local-2.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-vs-local-2.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 #include "analyzer-decls.h"
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/malloc-vs-local-3.c b/gcc/testsuite/c-c++-common/analyzer/malloc-vs-local-3.c
index 0196389d3a59..70b3edd38f5b 100644
--- a/gcc/testsuite/c-c++-common/analyzer/malloc-vs-local-3.c
+++ b/gcc/testsuite/c-c++-common/analyzer/malloc-vs-local-3.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 #include "analyzer-decls.h"
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-1.c b/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-1.c
index 868b8ee9b410..16b2271bb93e 100644
--- a/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-1.c
+++ b/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-1.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 #include <string.h>
 #include <stdint.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-2.c b/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-2.c
index e69614612fdb..0e1aba59fef7 100644
--- a/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-2.c
+++ b/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-2.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-diagram-3.c b/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-diagram-3.c
index 43df9564a76a..e75ce1214bd2 100644
--- a/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-diagram-3.c
+++ b/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-diagram-3.c
@@ -2,6 +2,7 @@
    { dg-require-effective-target lp64 } */
 
 /* { dg-additional-options "-fdiagnostics-text-art-charset=unicode" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 #include <string.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-diagram-8.c b/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-diagram-8.c
index 81cd4ff3c4b1..c8ff2fd1e64c 100644
--- a/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-diagram-8.c
+++ b/gcc/testsuite/c-c++-common/analyzer/out-of-bounds-diagram-8.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-fdiagnostics-text-art-charset=unicode" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib size_t" { ! hostedlib } } */
 
 #include <stdlib.h>
 #include <stdint.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/paths-3.c b/gcc/testsuite/c-c++-common/analyzer/paths-3.c
index b5ab810e5363..1a4a81350c19 100644
--- a/gcc/testsuite/c-c++-common/analyzer/paths-3.c
+++ b/gcc/testsuite/c-c++-common/analyzer/paths-3.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-fanalyzer-transitivity" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 #include "analyzer-decls.h"
diff --git a/gcc/testsuite/c-c++-common/analyzer/paths-6.c b/gcc/testsuite/c-c++-common/analyzer/paths-6.c
index ef1a4e6c04d1..766db4c40a05 100644
--- a/gcc/testsuite/c-c++-common/analyzer/paths-6.c
+++ b/gcc/testsuite/c-c++-common/analyzer/paths-6.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 #include "analyzer-decls.h"
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/paths-7.c b/gcc/testsuite/c-c++-common/analyzer/paths-7.c
index 8caaee8a3fd0..2743de5cd8c0 100644
--- a/gcc/testsuite/c-c++-common/analyzer/paths-7.c
+++ b/gcc/testsuite/c-c++-common/analyzer/paths-7.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 #include "analyzer-decls.h"
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/pr103526.c b/gcc/testsuite/c-c++-common/analyzer/pr103526.c
index 0388fc1df999..ce8fa22a7845 100644
--- a/gcc/testsuite/c-c++-common/analyzer/pr103526.c
+++ b/gcc/testsuite/c-c++-common/analyzer/pr103526.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 #include <string.h>
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/pr106539.c b/gcc/testsuite/c-c++-common/analyzer/pr106539.c
index fd270868e362..82df5dd6f3a6 100644
--- a/gcc/testsuite/c-c++-common/analyzer/pr106539.c
+++ b/gcc/testsuite/c-c++-common/analyzer/pr106539.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 void *test (void)
diff --git a/gcc/testsuite/c-c++-common/analyzer/pr93290.c b/gcc/testsuite/c-c++-common/analyzer/pr93290.c
index fa35629d955b..4fcc4cbfaed1 100644
--- a/gcc/testsuite/c-c++-common/analyzer/pr93290.c
+++ b/gcc/testsuite/c-c++-common/analyzer/pr93290.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for cmath" { ! hostedlib } } */
+
 #include <math.h>
 
 int test_1 (void)
diff --git a/gcc/testsuite/c-c++-common/analyzer/pr94399.c b/gcc/testsuite/c-c++-common/analyzer/pr94399.c
index e897c04a007e..70270c37a27d 100644
--- a/gcc/testsuite/c-c++-common/analyzer/pr94399.c
+++ b/gcc/testsuite/c-c++-common/analyzer/pr94399.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 #define _cleanup_(f) __attribute__((cleanup(f)))
diff --git a/gcc/testsuite/c-c++-common/analyzer/pr94851-1.c b/gcc/testsuite/c-c++-common/analyzer/pr94851-1.c
index 7407efa21e76..dc2bc3a7806a 100644
--- a/gcc/testsuite/c-c++-common/analyzer/pr94851-1.c
+++ b/gcc/testsuite/c-c++-common/analyzer/pr94851-1.c
@@ -1,5 +1,6 @@
 /* { dg-skip-if "" { powerpc*-*-aix* } } */
 /* { dg-additional-options "-O2" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/pr94851-2.c b/gcc/testsuite/c-c++-common/analyzer/pr94851-2.c
index 62176bdaee89..af838de9355d 100644
--- a/gcc/testsuite/c-c++-common/analyzer/pr94851-2.c
+++ b/gcc/testsuite/c-c++-common/analyzer/pr94851-2.c
@@ -2,6 +2,7 @@
    an unknown function (PR analyzer/98575).  */
 
 /* { dg-additional-options "-O2" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/pr94851-4.c b/gcc/testsuite/c-c++-common/analyzer/pr94851-4.c
index a5130c59cb00..d05d45876c9c 100644
--- a/gcc/testsuite/c-c++-common/analyzer/pr94851-4.c
+++ b/gcc/testsuite/c-c++-common/analyzer/pr94851-4.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-O2 -Wno-analyzer-symbol-too-complex" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/pr97608.c b/gcc/testsuite/c-c++-common/analyzer/pr97608.c
index a2bc1301097c..ddfa0091d86c 100644
--- a/gcc/testsuite/c-c++-common/analyzer/pr97608.c
+++ b/gcc/testsuite/c-c++-common/analyzer/pr97608.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 void *f (void)
diff --git a/gcc/testsuite/c-c++-common/analyzer/pr98918.c b/gcc/testsuite/c-c++-common/analyzer/pr98918.c
index c3bbce3e6ec1..eddc4e30684e 100644
--- a/gcc/testsuite/c-c++-common/analyzer/pr98918.c
+++ b/gcc/testsuite/c-c++-common/analyzer/pr98918.c
@@ -1,4 +1,5 @@
 /* { dg-additional-options "-Wno-analyzer-symbol-too-complex" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/pr99716-2.c b/gcc/testsuite/c-c++-common/analyzer/pr99716-2.c
index adc9819643ae..ef7cc5fb4945 100644
--- a/gcc/testsuite/c-c++-common/analyzer/pr99716-2.c
+++ b/gcc/testsuite/c-c++-common/analyzer/pr99716-2.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib rand" { ! hostedlib } } */
+
 /* Reduced from
    https://github.com/libguestfs/libguestfs/blob/e0a11061035d47b118c95706240bcc17fd576edc/tests/mount-local/test-parallel-mount-local.c#L299-L335
    which is GPLv2 or later.  */
diff --git a/gcc/testsuite/c-c++-common/analyzer/pr99716-3.c b/gcc/testsuite/c-c++-common/analyzer/pr99716-3.c
index 77d450ea3be0..414d57e3a728 100644
--- a/gcc/testsuite/c-c++-common/analyzer/pr99716-3.c
+++ b/gcc/testsuite/c-c++-common/analyzer/pr99716-3.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 extern void foo (void *);
diff --git a/gcc/testsuite/c-c++-common/analyzer/pragma-1.c b/gcc/testsuite/c-c++-common/analyzer/pragma-1.c
index 2e533489405b..821266a3c3ba 100644
--- a/gcc/testsuite/c-c++-common/analyzer/pragma-1.c
+++ b/gcc/testsuite/c-c++-common/analyzer/pragma-1.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
+
 /* Verify that we can disable analyzer warnings via pragmas.  */
 
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/pragma-2.c b/gcc/testsuite/c-c++-common/analyzer/pragma-2.c
index 2453223d9392..bd96a2538540 100644
--- a/gcc/testsuite/c-c++-common/analyzer/pragma-2.c
+++ b/gcc/testsuite/c-c++-common/analyzer/pragma-2.c
@@ -1,6 +1,7 @@
 /* { dg-skip-if "" { powerpc*-*-aix* } } */
 /* Verify that we can disable -Wanalyzer-too-complex via pragmas.  */
 /* { dg-additional-options "-Wanalyzer-too-complex -Werror=analyzer-too-complex -fno-analyzer-state-merge -g" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/analyzer/scope-1.c b/gcc/testsuite/c-c++-common/analyzer/scope-1.c
index 09e62d46df35..7e53a1914c7e 100644
--- a/gcc/testsuite/c-c++-common/analyzer/scope-1.c
+++ b/gcc/testsuite/c-c++-common/analyzer/scope-1.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 int test_1 (void)
diff --git a/gcc/testsuite/c-c++-common/analyzer/signal-4a.c b/gcc/testsuite/c-c++-common/analyzer/signal-4a.c
index b5c6012ec2ec..ed2e330618b3 100644
--- a/gcc/testsuite/c-c++-common/analyzer/signal-4a.c
+++ b/gcc/testsuite/c-c++-common/analyzer/signal-4a.c
@@ -3,6 +3,7 @@
 /* { dg-options "-fanalyzer -fdiagnostics-show-line-numbers -fdiagnostics-path-format=inline-events -fdiagnostics-show-caret" } */
 /* { dg-enable-nn-line-numbers "" } */
 /* { dg-require-effective-target signal } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdio.h>
 #include <signal.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/strndup-1.c b/gcc/testsuite/c-c++-common/analyzer/strndup-1.c
index 577ece0cfbaa..3f90afe2ebb6 100644
--- a/gcc/testsuite/c-c++-common/analyzer/strndup-1.c
+++ b/gcc/testsuite/c-c++-common/analyzer/strndup-1.c
@@ -1,5 +1,6 @@
 /* { dg-skip-if "no strndup in libc" { *-*-darwin[789]* *-*-darwin10* hppa*-*-hpux* *-*-mingw* *-*-vxworks* } } */
 /* { dg-additional-options "-D_POSIX_C_SOURCE=200809L" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib free" { ! hostedlib } } */
 
 #include <string.h>
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/taint-alloc-3.c b/gcc/testsuite/c-c++-common/analyzer/taint-alloc-3.c
index ce6a3271d2ad..34bae28ac6aa 100644
--- a/gcc/testsuite/c-c++-common/analyzer/taint-alloc-3.c
+++ b/gcc/testsuite/c-c++-common/analyzer/taint-alloc-3.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include "analyzer-decls.h"
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/taint-realloc.c b/gcc/testsuite/c-c++-common/analyzer/taint-realloc.c
index aeefb7da2c12..d5ccb28ddd28 100644
--- a/gcc/testsuite/c-c++-common/analyzer/taint-realloc.c
+++ b/gcc/testsuite/c-c++-common/analyzer/taint-realloc.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib realloc" { ! hostedlib } } */
+
 #include "analyzer-decls.h"
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/analyzer/use-after-free-3.c b/gcc/testsuite/c-c++-common/analyzer/use-after-free-3.c
index b19fd3de49f4..d8eeb1741138 100644
--- a/gcc/testsuite/c-c++-common/analyzer/use-after-free-3.c
+++ b/gcc/testsuite/c-c++-common/analyzer/use-after-free-3.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 void test_1 (int x, int y, int *out)
diff --git a/gcc/testsuite/c-c++-common/analyzer/zlib-4.c b/gcc/testsuite/c-c++-common/analyzer/zlib-4.c
index ae2f6c9f8ad1..32d5991b4218 100644
--- a/gcc/testsuite/c-c++-common/analyzer/zlib-4.c
+++ b/gcc/testsuite/c-c++-common/analyzer/zlib-4.c
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requires hosted libstdc++ for stdlib calloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 #include <string.h>
 
diff --git a/gcc/testsuite/c-c++-common/goacc/kernels-counter-vars-function-scope.c b/gcc/testsuite/c-c++-common/goacc/kernels-counter-vars-function-scope.c
index bce17a1011c3..dedf8481b074 100644
--- a/gcc/testsuite/c-c++-common/goacc/kernels-counter-vars-function-scope.c
+++ b/gcc/testsuite/c-c++-common/goacc/kernels-counter-vars-function-scope.c
@@ -1,6 +1,7 @@
 /* { dg-additional-options "-O2" } */
 /* { dg-additional-options "-fdump-tree-parloops1-all" } */
 /* { dg-additional-options "-fdump-tree-optimized" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/goacc/kernels-loop-2.c b/gcc/testsuite/c-c++-common/goacc/kernels-loop-2.c
index 456a95451fa7..9d3d6b341677 100644
--- a/gcc/testsuite/c-c++-common/goacc/kernels-loop-2.c
+++ b/gcc/testsuite/c-c++-common/goacc/kernels-loop-2.c
@@ -1,6 +1,7 @@
 /* { dg-additional-options "-O2" } */
 /* { dg-additional-options "-fdump-tree-parloops1-all" } */
 /* { dg-additional-options "-fdump-tree-optimized" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/goacc/kernels-loop-3.c b/gcc/testsuite/c-c++-common/goacc/kernels-loop-3.c
index ef0c481dea09..24e5d02f7fa1 100644
--- a/gcc/testsuite/c-c++-common/goacc/kernels-loop-3.c
+++ b/gcc/testsuite/c-c++-common/goacc/kernels-loop-3.c
@@ -1,6 +1,7 @@
 /* { dg-additional-options "-O2" } */
 /* { dg-additional-options "-fdump-tree-parloops1-all" } */
 /* { dg-additional-options "-fdump-tree-optimized" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/goacc/kernels-loop-data-2.c b/gcc/testsuite/c-c++-common/goacc/kernels-loop-data-2.c
index a64007815c19..a9bae836567f 100644
--- a/gcc/testsuite/c-c++-common/goacc/kernels-loop-data-2.c
+++ b/gcc/testsuite/c-c++-common/goacc/kernels-loop-data-2.c
@@ -1,6 +1,7 @@
 /* { dg-additional-options "-O2" } */
 /* { dg-additional-options "-fdump-tree-parloops1-all" } */
 /* { dg-additional-options "-fdump-tree-optimized" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/goacc/kernels-loop-data-enter-exit-2.c b/gcc/testsuite/c-c++-common/goacc/kernels-loop-data-enter-exit-2.c
index d46bba8ec3a0..aeeeb51d5c0e 100644
--- a/gcc/testsuite/c-c++-common/goacc/kernels-loop-data-enter-exit-2.c
+++ b/gcc/testsuite/c-c++-common/goacc/kernels-loop-data-enter-exit-2.c
@@ -1,6 +1,7 @@
 /* { dg-additional-options "-O2" } */
 /* { dg-additional-options "-fdump-tree-parloops1-all" } */
 /* { dg-additional-options "-fdump-tree-optimized" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/goacc/kernels-loop-data-enter-exit.c b/gcc/testsuite/c-c++-common/goacc/kernels-loop-data-enter-exit.c
index 6698980a86f3..843c5a7105f5 100644
--- a/gcc/testsuite/c-c++-common/goacc/kernels-loop-data-enter-exit.c
+++ b/gcc/testsuite/c-c++-common/goacc/kernels-loop-data-enter-exit.c
@@ -1,6 +1,7 @@
 /* { dg-additional-options "-O2" } */
 /* { dg-additional-options "-fdump-tree-parloops1-all" } */
 /* { dg-additional-options "-fdump-tree-optimized" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/goacc/kernels-loop-data-update.c b/gcc/testsuite/c-c++-common/goacc/kernels-loop-data-update.c
index 9c6997f86b0a..57e440f4e701 100644
--- a/gcc/testsuite/c-c++-common/goacc/kernels-loop-data-update.c
+++ b/gcc/testsuite/c-c++-common/goacc/kernels-loop-data-update.c
@@ -1,6 +1,7 @@
 /* { dg-additional-options "-O2" } */
 /* { dg-additional-options "-fdump-tree-parloops1-all" } */
 /* { dg-additional-options "-fdump-tree-optimized" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/goacc/kernels-loop-data.c b/gcc/testsuite/c-c++-common/goacc/kernels-loop-data.c
index 0ef576521b09..896b4565ac6e 100644
--- a/gcc/testsuite/c-c++-common/goacc/kernels-loop-data.c
+++ b/gcc/testsuite/c-c++-common/goacc/kernels-loop-data.c
@@ -1,6 +1,7 @@
 /* { dg-additional-options "-O2" } */
 /* { dg-additional-options "-fdump-tree-parloops1-all" } */
 /* { dg-additional-options "-fdump-tree-optimized" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/goacc/kernels-loop-g.c b/gcc/testsuite/c-c++-common/goacc/kernels-loop-g.c
index cf9f1ee6b28a..6b89b3b88b83 100644
--- a/gcc/testsuite/c-c++-common/goacc/kernels-loop-g.c
+++ b/gcc/testsuite/c-c++-common/goacc/kernels-loop-g.c
@@ -5,6 +5,7 @@
 /*TODO PR100400 { dg-additional-options -fcompare-debug } */
 /* { dg-additional-options "-fdump-tree-parloops1-all" } */
 /* { dg-additional-options "-fdump-tree-optimized" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include "kernels-loop.c"
 
diff --git a/gcc/testsuite/c-c++-common/goacc/kernels-loop-mod-not-zero.c b/gcc/testsuite/c-c++-common/goacc/kernels-loop-mod-not-zero.c
index eea9a735e8b5..f2787d0bf523 100644
--- a/gcc/testsuite/c-c++-common/goacc/kernels-loop-mod-not-zero.c
+++ b/gcc/testsuite/c-c++-common/goacc/kernels-loop-mod-not-zero.c
@@ -1,6 +1,7 @@
 /* { dg-additional-options "-O2" } */
 /* { dg-additional-options "-fdump-tree-parloops1-all" } */
 /* { dg-additional-options "-fdump-tree-optimized" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/goacc/kernels-loop-n.c b/gcc/testsuite/c-c++-common/goacc/kernels-loop-n.c
index a63ed8ab1fd8..caa05720afdb 100644
--- a/gcc/testsuite/c-c++-common/goacc/kernels-loop-n.c
+++ b/gcc/testsuite/c-c++-common/goacc/kernels-loop-n.c
@@ -1,6 +1,7 @@
 /* { dg-additional-options "-O2" } */
 /* { dg-additional-options "-fdump-tree-parloops1-all" } */
 /* { dg-additional-options "-fdump-tree-optimized" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/goacc/kernels-loop.c b/gcc/testsuite/c-c++-common/goacc/kernels-loop.c
index 2602081f2c66..75cbeed383bf 100644
--- a/gcc/testsuite/c-c++-common/goacc/kernels-loop.c
+++ b/gcc/testsuite/c-c++-common/goacc/kernels-loop.c
@@ -1,6 +1,7 @@
 /* { dg-additional-options "-O2" } */
 /* { dg-additional-options "-fdump-tree-parloops1-all" } */
 /* { dg-additional-options "-fdump-tree-optimized" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/goacc/kernels-one-counter-var.c b/gcc/testsuite/c-c++-common/goacc/kernels-one-counter-var.c
index 0d9c875f3d93..67c19ec60552 100644
--- a/gcc/testsuite/c-c++-common/goacc/kernels-one-counter-var.c
+++ b/gcc/testsuite/c-c++-common/goacc/kernels-one-counter-var.c
@@ -1,6 +1,7 @@
 /* { dg-additional-options "-O2" } */
 /* { dg-additional-options "-fdump-tree-parloops1-all" } */
 /* { dg-additional-options "-fdump-tree-optimized" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/goacc/kernels-parallel-loop-data-enter-exit.c b/gcc/testsuite/c-c++-common/goacc/kernels-parallel-loop-data-enter-exit.c
index 1dcd32fb8dc1..b2ba14d47fd1 100644
--- a/gcc/testsuite/c-c++-common/goacc/kernels-parallel-loop-data-enter-exit.c
+++ b/gcc/testsuite/c-c++-common/goacc/kernels-parallel-loop-data-enter-exit.c
@@ -1,6 +1,7 @@
 /* { dg-additional-options "-O2" } */
 /* { dg-additional-options "-fdump-tree-parloops1-all" } */
 /* { dg-additional-options "-fdump-tree-optimized" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/gomp/pr103642.c b/gcc/testsuite/c-c++-common/gomp/pr103642.c
index bbd0896841f6..bc6d7ac18de3 100644
--- a/gcc/testsuite/c-c++-common/gomp/pr103642.c
+++ b/gcc/testsuite/c-c++-common/gomp/pr103642.c
@@ -1,5 +1,6 @@
 /* PR middle-end/103642 */
 /* { dg-do compile } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/c-c++-common/gomp/target-implicit-map-2.c b/gcc/testsuite/c-c++-common/gomp/target-implicit-map-2.c
index 222272df5b1e..b3df466a7747 100644
--- a/gcc/testsuite/c-c++-common/gomp/target-implicit-map-2.c
+++ b/gcc/testsuite/c-c++-common/gomp/target-implicit-map-2.c
@@ -1,5 +1,7 @@
 /* { dg-do compile } */
 /* { dg-additional-options "-fdump-tree-gimple" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
+
 #include <stdlib.h>
 
 #define N 10
diff --git a/gcc/testsuite/c-c++-common/pr36513-2.c b/gcc/testsuite/c-c++-common/pr36513-2.c
index d81c81dd4da0..ca93f4143046 100644
--- a/gcc/testsuite/c-c++-common/pr36513-2.c
+++ b/gcc/testsuite/c-c++-common/pr36513-2.c
@@ -1,6 +1,7 @@
 /* PR 36513: -Wlogical-op warns about strchr */
 /* { dg-do compile } */
 /* { dg-options "-Wlogical-op" } */
+/* { dg-skip-if "requires hosted libstdc++ for cstring" { ! hostedlib } } */
 #ifdef __cplusplus
 #include <cstring>
 #else 
diff --git a/gcc/testsuite/c-c++-common/simulate-thread/bitfields-4.c b/gcc/testsuite/c-c++-common/simulate-thread/bitfields-4.c
index 84aad5e9e216..6ee91aa3bc47 100644
--- a/gcc/testsuite/c-c++-common/simulate-thread/bitfields-4.c
+++ b/gcc/testsuite/c-c++-common/simulate-thread/bitfields-4.c
@@ -1,6 +1,7 @@
 /* { dg-do link } */
 /* { dg-options "-fno-allow-store-data-races" } */
 /* { dg-final { simulate-thread } } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib calloc" { ! hostedlib } } */
 
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/gcc/testsuite/c-c++-common/tm/malloc.c b/gcc/testsuite/c-c++-common/tm/malloc.c
index 4312765f750d..f8ab68954a9b 100644
--- a/gcc/testsuite/c-c++-common/tm/malloc.c
+++ b/gcc/testsuite/c-c++-common/tm/malloc.c
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-fgnu-tm -fdump-tree-tmmark" } */
+/* { dg-skip-if "requires hosted libstdc++ for stdlib malloc" { ! hostedlib } } */
 
 #include <stdlib.h>
 
diff --git a/gcc/testsuite/g++.dg/abi/mangle36.C b/gcc/testsuite/g++.dg/abi/mangle36.C
index 1acfc879b96a..d0f2b37dfb04 100644
--- a/gcc/testsuite/g++.dg/abi/mangle36.C
+++ b/gcc/testsuite/g++.dg/abi/mangle36.C
@@ -1,6 +1,7 @@
 // PR c++/41959
 // { dg-do compile { target i?86-*-* x86_64-*-* } }
 // { dg-options "-mavx -fabi-version=4 -fabi-compat-version=4" }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib malloc" { ! hostedlib } }
 // { dg-final { scan-assembler "_Z1fDv4_f" } }
 // { dg-final { scan-assembler "_Z1fDv8_f" } }
 
diff --git a/gcc/testsuite/g++.dg/abi/mangle40.C b/gcc/testsuite/g++.dg/abi/mangle40.C
index 898565ac5720..98a1ff08a4ea 100644
--- a/gcc/testsuite/g++.dg/abi/mangle40.C
+++ b/gcc/testsuite/g++.dg/abi/mangle40.C
@@ -3,6 +3,7 @@
 // { dg-require-weak "" }
 // { dg-require-alias "" }
 // { dg-options "-mavx -Wabi -fabi-version=2 -fabi-compat-version=0" }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib malloc" { ! hostedlib } }
 // { dg-final { scan-assembler "(weak|glob)\[^\n\]*_Z1fIDv4_fEvT_" } }
 // { dg-final { scan-assembler "(weak|glob)\[^\n\]*_Z1fIU8__vectorfEvT_" } }
 // { dg-final { scan-assembler "(weak|glob)\[^\n\]*_ZN1AIDv4_fE1tE" } }
diff --git a/gcc/testsuite/g++.dg/abi/mangle41.C b/gcc/testsuite/g++.dg/abi/mangle41.C
index 9da72f11feb6..d11f4541f99c 100644
--- a/gcc/testsuite/g++.dg/abi/mangle41.C
+++ b/gcc/testsuite/g++.dg/abi/mangle41.C
@@ -1,6 +1,7 @@
 // PR c++/41959
 // { dg-do compile { target i?86-*-* x86_64-*-* } }
 // { dg-options "-mavx -fabi-version=2" }
+// { dg-skip-if "requires hosted libstdc++ for cstdlib malloc" { ! hostedlib } }
 
 #include <x86intrin.h>
 void f(__m128) { }	// { dg-message "previous mangling" }
diff --git a/gcc/testsuite/g++.dg/analyzer/cstdlib.C b/gcc/testsuite/g++.dg/analyzer/cstdlib.C
index ec6327bf884d..072ac456405d 100644
--- a/gcc/testsuite/g++.dg/analyzer/cstdlib.C
+++ b/gcc/testsuite/g++.dg/analyzer/cstdlib.C
@@ -1,3 +1,5 @@
+/* { dg-skip-if "requir