From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout-p-103.mailbox.org (mout-p-103.mailbox.org [80.241.56.161]) by sourceware.org (Postfix) with ESMTPS id 2BA363858C5E; Tue, 4 Apr 2023 23:10:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2BA363858C5E Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=aarsen.me Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=aarsen.me Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4Prk5T3Whlz9sW7; Wed, 5 Apr 2023 01:10:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; t=1680649853; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=j1GyDm6Y9e54kXEc+fw5ful4FneQODBotV6SH737pLc=; b=aZUmn5JtTNrpV8JVYsHhUQSmaeIlIA+7ukMqklq6UnIww8a5uq71MtI0HnWaRNGQv0CYuT fq9l9NKkpF60VYKT0lsyVHGvkK5YPhNY96PFwFhKgAOa98t3T76QGLZQ1VltFliU9gDMNR RPcMbdsnB5UZavELDE3zFMjH5JHXpp4RwoylSQGO4stxAcpUiylIgTBIf6Un/shlB10QMl 3ZVkN8VUE3M54asXliyi+htPNm1BNF8apaNEzih3lCHZW7STK7xBynVaGyeFm2OyWUXbm7 slwCrqcvaOB8+NonvoDckMlqI4jZlS2NPPXCwDCuzxqkcjfsk/7kQAVzXPBb5w== From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= To: gcc-patches@gcc.gnu.org Cc: libstdc++@gcc.gnu.org, =?UTF-8?q?Arsen=20Arsenovi=C4=87?= Subject: [PATCH 4/4] libstdc++: Fix some freestanding test failures Date: Wed, 5 Apr 2023 01:09:50 +0200 Message-Id: <20230404230950.158556-4-arsen@aarsen.me> In-Reply-To: <20230404230950.158556-1-arsen@aarsen.me> References: <20230404230950.158556-1-arsen@aarsen.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4Prk5T3Whlz9sW7 X-Spam-Status: No, score=-10.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,KAM_INFOUSMEBIZ,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP,URI_HEX autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: At some point, was added to the non-hosted bit of the C++17 block, which induced failures in many tests. In addition, some tests also lacked a dg-require-effective-target hosted tag. libstdc++-v3/ChangeLog: * include/precompiled/stdc++.h (C++17): Don't double-include , once with wrong conditions. * testsuite/18_support/96817.cc: Require hosted. * testsuite/18_support/bad_exception/59392.cc: Ditto. * testsuite/20_util/scoped_allocator/108952.cc: Ditto. * testsuite/20_util/uses_allocator/lwg3527.cc: Ditto. * testsuite/29_atomics/atomic/operators/pointer_partial_void.cc: Ditto. --- libstdc++-v3/include/precompiled/stdc++.h | 1 - libstdc++-v3/testsuite/18_support/96817.cc | 1 + libstdc++-v3/testsuite/18_support/bad_exception/59392.cc | 1 + libstdc++-v3/testsuite/20_util/scoped_allocator/108952.cc | 1 + libstdc++-v3/testsuite/20_util/uses_allocator/lwg3527.cc | 1 + .../29_atomics/atomic/operators/pointer_partial_void.cc | 1 + 6 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/include/precompiled/stdc++.h b/libstdc++-v3/include/precompiled/stdc++.h index bc011986b53..176ad79ff3c 100644 --- a/libstdc++-v3/include/precompiled/stdc++.h +++ b/libstdc++-v3/include/precompiled/stdc++.h @@ -75,7 +75,6 @@ #if __cplusplus >= 201703L #include -#include // #include #include #include diff --git a/libstdc++-v3/testsuite/18_support/96817.cc b/libstdc++-v3/testsuite/18_support/96817.cc index 70938812bd8..073fc337e8f 100644 --- a/libstdc++-v3/testsuite/18_support/96817.cc +++ b/libstdc++-v3/testsuite/18_support/96817.cc @@ -17,6 +17,7 @@ // { dg-do run } // { dg-additional-options "-pthread" { target pthread } } +// { dg-require-effective-target hosted } // Static init cannot detect recursion for gthreads targets without futexes // (and the futex case can only detect it if __libc_single_threaded==true). diff --git a/libstdc++-v3/testsuite/18_support/bad_exception/59392.cc b/libstdc++-v3/testsuite/18_support/bad_exception/59392.cc index ac64e6eddb2..ae972d0535d 100644 --- a/libstdc++-v3/testsuite/18_support/bad_exception/59392.cc +++ b/libstdc++-v3/testsuite/18_support/bad_exception/59392.cc @@ -17,6 +17,7 @@ // { dg-options "-Wno-deprecated" } // { dg-do run { target c++14_down } } +// { dg-require-effective-target hosted } #include #include diff --git a/libstdc++-v3/testsuite/20_util/scoped_allocator/108952.cc b/libstdc++-v3/testsuite/20_util/scoped_allocator/108952.cc index a6b9c67498c..9342f453bf4 100644 --- a/libstdc++-v3/testsuite/20_util/scoped_allocator/108952.cc +++ b/libstdc++-v3/testsuite/20_util/scoped_allocator/108952.cc @@ -1,4 +1,5 @@ // { dg-do compile { target c++11 } } +// { dg-require-effective-target hosted } #include diff --git a/libstdc++-v3/testsuite/20_util/uses_allocator/lwg3527.cc b/libstdc++-v3/testsuite/20_util/uses_allocator/lwg3527.cc index ae377f4b5a3..c5a7d513b31 100644 --- a/libstdc++-v3/testsuite/20_util/uses_allocator/lwg3527.cc +++ b/libstdc++-v3/testsuite/20_util/uses_allocator/lwg3527.cc @@ -1,5 +1,6 @@ // { dg-options "-std=gnu++20" } // { dg-do compile { target c++20 } } +// { dg-require-effective-target hosted } #include diff --git a/libstdc++-v3/testsuite/29_atomics/atomic/operators/pointer_partial_void.cc b/libstdc++-v3/testsuite/29_atomics/atomic/operators/pointer_partial_void.cc index ddb63233a64..e5d221ed15a 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic/operators/pointer_partial_void.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic/operators/pointer_partial_void.cc @@ -1,5 +1,6 @@ // { dg-do run { target { c++11_only || c++14_only } } } // { dg-require-atomic-builtins "" } +// { dg-require-effective-target hosted } // Copyright (C) 2012-2023 Free Software Foundation, Inc. // -- 2.40.0