From patchwork Wed Oct 4 03:11:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 148150 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp2522508vqb; Tue, 3 Oct 2023 21:47:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEWLVeLEY7Mp6A3qsBYm0xnD3V35/BNW5CNCv13zvJymhspNwZTOg6eKYTcKJ1Z2tG/WbvG X-Received: by 2002:a17:907:b12:b0:9b2:b763:8d6b with SMTP id h18-20020a1709070b1200b009b2b7638d6bmr910983ejl.50.1696394871096; Tue, 03 Oct 2023 21:47:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696394871; cv=pass; d=google.com; s=arc-20160816; b=r4563Uu4TiAItfiueoQgha8hhn3iUFM8ShFlfE1IvT2Eh7Uif/RfYnyOY7AeGHFz+a R1doILteJzO/dGMHEpcg1dk3rEmOop8lKgWp2DTbDZ2dHQevo7kjzgVDFM2gMBNVDxX3 gh4groyyppv/OVCHlKte+wTpViIvokM8TNtqksAviOYtLHW0Cd1Su5b5r3IIi1/lOP3D 6cxzpcKOFToenAxKeFoFQci5WV4rHvsOcdJgNwAw2nRY2r6v1i8bVT++annR5N/oDpF8 rj03RT01WjwldBpXl22tJEZ/wuUGFSdD9AAchXzogLCd4PP4tOqPcQwX5faA2+G5+BRn gZDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:date:message-id:references :content-transfer-encoding:mime-version:subject:in-reply-to:cc:to :from:dkim-signature:dmarc-filter:delivered-to; bh=sAO5XEVkGQP7k0PTmESoU2lWNxO1LDcAppa/MXtS2K8=; fh=BFUAfP3LrNKiUVnBam/vJbyj6bd7pJEFtISg/wI+450=; b=LZD2i20mtUDz7UjJF0t9Y0PjNoNNL+WFRSblg2p+wrKYdsO8Rok6xIdho6QlmQ0yD5 3GBKta5PBFVYbov2xOkXEwCUGbw/8P4S2jO+7V3rmNMMP4KPckUiW+T/pA/fPxY/uX+Q F2ipQK1hrQMWJCNMrunanMj8oYxbShkR0eL3Fr2yNBItIBz1lJsARpb1APIW3iOl85OM POaZ9VTppK9pIUaqAyxiCCf8OsvYgZwM25U7opOJ5ZWqu7NALdAIJkLhLH+gWtyzi6hW My9H82JxEKHuLqQWF8xSEG/R5ugd78MFHKsW40knVSBRXMsO6p/bjcHCgyI0s31tsmgg QBkg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@axis.com header.s=selector1 header.b="Tzw4N/uP"; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id md19-20020a170906ae9300b009adc76a4fe4si1288110ejb.917.2023.10.03.21.47.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 21:47:51 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@axis.com header.s=selector1 header.b="Tzw4N/uP"; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D19743861932 for ; Wed, 4 Oct 2023 03:12:06 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2051.outbound.protection.outlook.com [40.107.22.51]) by sourceware.org (Postfix) with ESMTPS id 063703857C44; Wed, 4 Oct 2023 03:11:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 063703857C44 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=axis.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=axis.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JUcC4uWTWrDl53AjoKxh86ueq1m1xMfhPIlYXF36BDi1yo6VeNtVkd0lBm0X3V0e8/3PSrPRYOm1a97gE/zbp/VgAJhPc4OH2GrUolKHDoGTxPTGaRh7F/3ZSKeq5ckUTwgEpUBKyTU9xlV/31IBWWsOZZYKK7B2U53Weo8r/jRjvd6t73BBMGTtVqGC4HrcQ1Gk9e+8+xuec8xNMWqzi4lkBhdQCsr/bYMj9SVPxqQ4ADuv03uw1M+QfNl/mX9MyLHBrw2Cr+o88JhiX0h1BHa1ombPtualBOD0NEEUeSmXv3sm7F254fIFy3Pxq9ip23DIsKP+rjofmgG/8jd+7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sAO5XEVkGQP7k0PTmESoU2lWNxO1LDcAppa/MXtS2K8=; b=bX1PzAR82V051JcPxFA1wFELvrkid0hmaIHzt69DV+bSgJ/d2ATzDrZw+Ka75fjC6oRfkPWcStU4zEK/dwjR8G5N52BUuqUJ+BzTvz43EovcobnfXUD2NrtRp6M9MLMdLJIaavAoByjV5GcYOViXqrBKmHWxe7r1bt5cdVPRhtQnfNLopQy18G8FeF3aPVnaNfIjk6O7qxX3xbjbWZVoFQk4cz5xEYqQwM/WA0ePBS61Zk6qjIbg7AbXEW7XgYyCIBqp12WOXla0S3aI3TGrqBfY+fFlWKSU0CqCqi3O8j99/JOwyzmA1CAiMNO+ct3sQrhT2rAC9ihnE8B/Xz5qmw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 195.60.68.100) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=axis.com; dmarc=fail (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sAO5XEVkGQP7k0PTmESoU2lWNxO1LDcAppa/MXtS2K8=; b=Tzw4N/uPQyHFQ/utVebJ0c29lVcIAR5ZNy3WWd8AOVmqedlL/Hj/Qrv+zh0UgbRNIL9WmLJNo4q/zKRPnNAhSGybTxOMvneZhANC8g4TqcN9pkhODBNeR4O0YliJ2Zq8yLL07Ygo9WUibEAdzxTr4ncm4NrZGt/ORUb18HJnSpA= Received: from DUZPR01CA0061.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c2::19) by GV1PR02MB8882.eurprd02.prod.outlook.com (2603:10a6:150:85::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.33; Wed, 4 Oct 2023 03:11:37 +0000 Received: from DU6PEPF00009523.eurprd02.prod.outlook.com (2603:10a6:10:3c2:cafe::b1) by DUZPR01CA0061.outlook.office365.com (2603:10a6:10:3c2::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.30 via Frontend Transport; Wed, 4 Oct 2023 03:11:37 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=fail action=none header.from=axis.com; Received-SPF: Fail (protection.outlook.com: domain of axis.com does not designate 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; Received: from mail.axis.com (195.60.68.100) by DU6PEPF00009523.mail.protection.outlook.com (10.167.8.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.14 via Frontend Transport; Wed, 4 Oct 2023 03:11:37 +0000 Received: from se-mail01w.axis.com (10.20.40.7) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Wed, 4 Oct 2023 05:11:36 +0200 Received: from se-intmail02x.se.axis.com (10.0.5.60) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Wed, 4 Oct 2023 05:11:36 +0200 Received: from pchp3.se.axis.com (pchp3.se.axis.com [10.88.21.53]) by se-intmail02x.se.axis.com (Postfix) with ESMTP id 8F6B2B02; Wed, 4 Oct 2023 05:11:36 +0200 (CEST) Received: by pchp3.se.axis.com (Postfix, from userid 171) id 8B8BA2042A; Wed, 4 Oct 2023 05:11:36 +0200 (CEST) From: Hans-Peter Nilsson To: Christophe Lyon CC: , In-Reply-To: (message from Christophe Lyon on Tue, 3 Oct 2023 15:20:39 +0200) Subject: [PATCH 2/2] testsuite: Replace many dg-require-thread-fence with dg-require-atomic-exchange MIME-Version: 1.0 References: <20230926143439.B589920431@pchp3.se.axis.com> Message-ID: <20231004031136.8B8BA2042A@pchp3.se.axis.com> Date: Wed, 4 Oct 2023 05:11:36 +0200 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU6PEPF00009523:EE_|GV1PR02MB8882:EE_ X-MS-Office365-Filtering-Correlation-Id: aba705e9-588c-42c6-7851-08dbc4879f1e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Yh7vYfrpjWPAt/bRVpDJCsJscO0PfiNOLADgmH3lZ9YHuLhFMkU5noIFxMM7hJaMs0Tvxn5y3PGGYmhy5gQSnI4L2PrnUHnFCGeD150pOO0YUtmLTBlt3xF778SFnUDjmhqILobdI+gOnWLcR1Hc+zGqQDvQ1PhqNsKBIWO+bvjZaXw3/oKnKLAn2m9U4Rq3YPbT9GlUTAao2xNY3TXmipe9VbSNUw/sEuLqMHMW15MVgeQxEHyskYNf7U7canvOd97qp50OR1xQ5dz0R3rC6Njw/LGKi+kSrXFD8+8hdqqpLKvH7/f59KvYNyeVLu7rk2QmW7lVUAkCpFkux/O6LNzRr4HDvo1VswKJbsoCudGldWSNrbg/MlE1aDMe2eQb8EVjyILmQ/xzMYjXhZHD5g8fGA+5S+XnPFSZKcXo9JR6dizUHwa47ey+GAD1oFYspz4L7nvRt0slitn3SX+SuXCLP/jMmjXZ9Z104FRtrcioMDvJMfAKW3CDIHEzSO+iHdHfb1p6nSIsH6r42VRLh5mE5SvKYLMdhEkbbtlJPNeBuJwFhecW2jnppt8wla3KHo/Cq3WCc4B09nIUpMMoVmHOVy8LDxK7B76Pt6nUQM6dSTbbKvQjeXq6ERzVe5e+yqXIzG0MjciS5fRmh/uoR3pURoRcMnZ+Af3tcajKfD9Ns0guS3DusUEo+J3uil0ZNWFjQ9OKORmHYXksnDM3ZqnIreMQmpmqxFZfZjCcExvg03UBkRRB6YnRqapuVjdjO5hrBJh4G0OgZiAgwnS+kwdMVIOB7CyGXegJqAB+RJc= X-Forefront-Antispam-Report: CIP:195.60.68.100; CTRY:SE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.axis.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(4636009)(39860400002)(136003)(396003)(376002)(346002)(230922051799003)(1800799009)(451199024)(64100799003)(186009)(82310400011)(36840700001)(46966006)(40470700004)(81166007)(82740400003)(26005)(5660300002)(8676002)(4326008)(8936002)(478600001)(47076005)(356005)(70206006)(70586007)(40480700001)(54906003)(1076003)(36860700001)(42186006)(6916009)(316002)(2906002)(426003)(336012)(6266002)(40460700003)(33656002)(83380400001)(41300700001)(2004002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2023 03:11:37.1635 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aba705e9-588c-42c6-7851-08dbc4879f1e X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af; Ip=[195.60.68.100]; Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: DU6PEPF00009523.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR02MB8882 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, URIBL_BLACK autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778798948151047854 X-GMAIL-MSGID: 1778798948151047854 > From: Christophe Lyon > Date: Tue, 3 Oct 2023 15:20:39 +0200 > The patch passed almost all our CI configurations, except arm-eabi when > testing with > -mthumb/-march=armv6s-m/-mtune=cortex-m0/-mfloat-abi=soft/-mfpu=auto > where is causes these failures: > FAIL: 29_atomics/atomic_flag/clear/1.cc -std=gnu++17 (test for excess > errors) > UNRESOLVED: 29_atomics/atomic_flag/clear/1.cc -std=gnu++17 compilation > failed to produce executable > FAIL: 29_atomics/atomic_flag/cons/value_init.cc -std=gnu++20 (test for > excess errors) > UNRESOLVED: 29_atomics/atomic_flag/cons/value_init.cc -std=gnu++20 > compilation failed to produce executable > FAIL: 29_atomics/atomic_flag/cons/value_init.cc -std=gnu++26 (test for > excess errors) > UNRESOLVED: 29_atomics/atomic_flag/cons/value_init.cc -std=gnu++26 > compilation failed to produce executable > FAIL: 29_atomics/atomic_flag/test_and_set/explicit.cc -std=gnu++17 (test > for excess errors) > UNRESOLVED: 29_atomics/atomic_flag/test_and_set/explicit.cc -std=gnu++17 > compilation failed to produce executable > FAIL: 29_atomics/atomic_flag/test_and_set/implicit.cc -std=gnu++17 (test > for excess errors) > UNRESOLVED: 29_atomics/atomic_flag/test_and_set/implicit.cc -std=gnu++17 > compilation failed to produce executable > > The linker error is: > undefined reference to `__atomic_test_and_set' Here's 2/2, fixing those regressions by, after code inspection, gating those test-case users of dg-require-thread-fence that actually use not just atomic-load/store functionality, but a form of compare-exchange, including the test-and-set cases listed above as testsuite regressions. That neatly includes the regressions above. Again, other libstdc++ test-cases should likely also use this gate, from what I see of "undefined references" in libstdc++.log. Tested together with 1/2. Ok to commit? (N.B. there was a stray suffix "non-atomic code" in the subject of 1/2; that's just a typo which will not be committed.) -- >8 -- These tests actually use a form of atomic exchange, not just atomic loading and storing. Some target have the latter, but not the former, yielding linker errors for missing library functions (and not supported by libatomic). This change is just for existing uses of dg-require-thread-fence. It does not fix any other tests that should also be gated on dg-require-atomic-exchange. * testsuite/29_atomics/atomic/compare_exchange_padding.cc, testsuite/29_atomics/atomic_flag/clear/1.cc, testsuite/29_atomics/atomic_flag/cons/value_init.cc, testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc, testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc, testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc, testsuite/29_atomics/atomic_ref/generic.cc, testsuite/29_atomics/atomic_ref/integral.cc, testsuite/29_atomics/atomic_ref/pointer.cc: Replace dg-require-thread-fence with dg-require-atomic-exchange. --- .../testsuite/29_atomics/atomic/compare_exchange_padding.cc | 2 +- libstdc++-v3/testsuite/29_atomics/atomic_flag/clear/1.cc | 2 +- .../testsuite/29_atomics/atomic_flag/cons/value_init.cc | 2 +- .../testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc | 2 +- .../testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc | 2 +- .../testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc | 2 +- libstdc++-v3/testsuite/29_atomics/atomic_ref/generic.cc | 2 +- libstdc++-v3/testsuite/29_atomics/atomic_ref/integral.cc | 2 +- libstdc++-v3/testsuite/29_atomics/atomic_ref/pointer.cc | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libstdc++-v3/testsuite/29_atomics/atomic/compare_exchange_padding.cc b/libstdc++-v3/testsuite/29_atomics/atomic/compare_exchange_padding.cc index 01f7475631e6..14698bb82456 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic/compare_exchange_padding.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic/compare_exchange_padding.cc @@ -1,5 +1,5 @@ // { dg-do run { target c++20 } } -// { dg-require-thread-fence "" } +// { dg-require-atomic-exchange "" } // { dg-add-options libatomic } #include diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_flag/clear/1.cc b/libstdc++-v3/testsuite/29_atomics/atomic_flag/clear/1.cc index 89ed381fe057..0d8a11899ef1 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic_flag/clear/1.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic_flag/clear/1.cc @@ -1,5 +1,5 @@ // { dg-do run { target c++11 } } -// { dg-require-thread-fence "" } +// { dg-require-atomic-exchange "" } // Copyright (C) 2009-2023 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/value_init.cc b/libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/value_init.cc index f3f38b54dbcd..f95818532107 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/value_init.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/value_init.cc @@ -16,7 +16,7 @@ // . // { dg-do run { target c++20 } } -// { dg-require-thread-fence "" } +// { dg-require-atomic-exchange "" } #include #include diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc b/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc index 6f723eb5f4e7..65ccee32142d 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/explicit.cc @@ -1,5 +1,5 @@ // { dg-do run { target c++11 } } -// { dg-require-thread-fence "" } +// { dg-require-atomic-exchange "" } // Copyright (C) 2008-2023 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc b/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc index 6f723eb5f4e7..65ccee32142d 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic_flag/test_and_set/implicit.cc @@ -1,5 +1,5 @@ // { dg-do run { target c++11 } } -// { dg-require-thread-fence "" } +// { dg-require-atomic-exchange "" } // Copyright (C) 2008-2023 Free Software Foundation, Inc. // diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc b/libstdc++-v3/testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc index 2a3d1d468c22..1573a11d07e8 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic_ref/compare_exchange_padding.cc @@ -1,5 +1,5 @@ // { dg-do run { target c++20 } } -// { dg-require-thread-fence "" } +// { dg-require-atomic-exchange "" } // { dg-add-options libatomic } #include diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_ref/generic.cc b/libstdc++-v3/testsuite/29_atomics/atomic_ref/generic.cc index f8751756d02c..1e0aef7ba5f6 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic_ref/generic.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic_ref/generic.cc @@ -16,7 +16,7 @@ // . // { dg-do run { target c++20 } } -// { dg-require-thread-fence "" } +// { dg-require-atomic-exchange "" } // { dg-add-options libatomic } #include diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_ref/integral.cc b/libstdc++-v3/testsuite/29_atomics/atomic_ref/integral.cc index eb22afca03a2..3d81f0886399 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic_ref/integral.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic_ref/integral.cc @@ -16,7 +16,7 @@ // . // { dg-do run { target c++20 } } -// { dg-require-thread-fence "" } +// { dg-require-atomic-exchange "" } // { dg-add-options libatomic } #include diff --git a/libstdc++-v3/testsuite/29_atomics/atomic_ref/pointer.cc b/libstdc++-v3/testsuite/29_atomics/atomic_ref/pointer.cc index 6fe00b557567..9c4afd61c365 100644 --- a/libstdc++-v3/testsuite/29_atomics/atomic_ref/pointer.cc +++ b/libstdc++-v3/testsuite/29_atomics/atomic_ref/pointer.cc @@ -16,7 +16,7 @@ // . // { dg-do run { target c++20 } } -// { dg-require-thread-fence "" } +// { dg-require-atomic-exchange "" } // { dg-add-options libatomic } #include