From patchwork Tue Sep 26 14:40:58 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: 144920 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp1967372vqu; Tue, 26 Sep 2023 07:41:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFU94nqPS+c/3QXYWJ08utS2M1KzM4FsrM4ZE+A8/4GHFLctTa+Wl2kVYcjkF94RYWDmZNe X-Received: by 2002:a17:906:114:b0:9ad:f60c:7287 with SMTP id 20-20020a170906011400b009adf60c7287mr4579139eje.28.1695739317335; Tue, 26 Sep 2023 07:41:57 -0700 (PDT) Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id m2-20020a170906848200b0098cf3eaee47si11009001ejx.689.2023.09.26.07.41.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 07:41:57 -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=gkeIQT76; arc=fail (DNS record missing); 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 82E3C385DC13 for ; Tue, 26 Sep 2023 14:41:33 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2088.outbound.protection.outlook.com [40.107.105.88]) by sourceware.org (Postfix) with ESMTPS id 2B46E3858404; Tue, 26 Sep 2023 14:41:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2B46E3858404 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=D2OAaIOpFakQ+iKLj2PmjozM2YQ8XpxWCLekH5n/PnpPIxIDcUqLD9tJV6KQOuC+Bz8wrHR+jyn+PqbttnznStqmWpYV94+7ZN+qU+n0Tfn0fz6vVqWAToAILsFI1Ovr/Tu9X9apifrVCvm6l4HJkgxZasWJXjrKSbW/X2PpLWVYcwlCBTovyT2/rXQ8ad8StB68JsQ2yivEOo2zJsoBT39r3vHnENwCMYR2qO2YOX62owOHkE55qbAxmAY0medyCE3HziAdk4W5N8YponnfntNAyUJ48+PAt+D+q9lwbmRb3DaKZeRzZBh5bKLayVxuIWx9Q0elRMUQMjM2I5vTvQ== 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=IB55rlDAkx/33nWXXUdKZVS5eBhC+5mlReQm0ZO5EsM=; b=kmSrEPlUKW+l7UI0jkt1H+qejpHiGaf3hTU3ua+9wUmWCWk5LP4t8mdAsXGD5tHEFwZYM7P11JHDCW24HA69ISEHQkaf2woMWQFcM3vV2Sr/3HgndRlOQEXl+3uGvgTrQEaZMpBC+hrWrATaQJOxh5I4E/FIzo40eMrft1neVAZTGvZcKgEkLGOVkklTsNOu+JHKrfH6iH+GVzz2XhdhlMDaTvLK1fzpRNMs+pjigenITZgpLBi9yUGibhtLrax0HNSJr2kR2fDjSA8kqhUw+uyKcdu7V/imdaZkKmEk39EtVLaBDF+5MABswSG+VoLEv7MZehL2SBHlc9Q0mkhlkA== 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=IB55rlDAkx/33nWXXUdKZVS5eBhC+5mlReQm0ZO5EsM=; b=gkeIQT76QsGO/7xDXjUcFm2wkwvboD+DiFSIVQPx6r48aZ0GpOld8LOAqq91LhInaooGV0whwQgTd8wetvVvRQykTpHQHLY8RR9yoLL0GIqSTRawcegCKY72f01joAl4S8kdILxT+g7rMfXrtqnQw+2qGkMruwIEEdDbRaJuRMs= Received: from DUZPR01CA0005.eurprd01.prod.exchangelabs.com (2603:10a6:10:3c3::9) by DU0PR02MB8220.eurprd02.prod.outlook.com (2603:10a6:10:314::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.28; Tue, 26 Sep 2023 14:40:59 +0000 Received: from DU2PEPF0001E9C2.eurprd03.prod.outlook.com (2603:10a6:10:3c3:cafe::81) by DUZPR01CA0005.outlook.office365.com (2603:10a6:10:3c3::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.35 via Frontend Transport; Tue, 26 Sep 2023 14:40:59 +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 DU2PEPF0001E9C2.mail.protection.outlook.com (10.167.8.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6838.14 via Frontend Transport; Tue, 26 Sep 2023 14:40:59 +0000 Received: from se-mail01w.axis.com (10.20.40.7) by se-mail02w.axis.com (10.20.40.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 26 Sep 2023 16:40:58 +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; Tue, 26 Sep 2023 16:40:58 +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 8D1361FB4; Tue, 26 Sep 2023 16:40:58 +0200 (CEST) Received: by pchp3.se.axis.com (Postfix, from userid 171) id 874C82042E; Tue, 26 Sep 2023 16:40:58 +0200 (CEST) From: Hans-Peter Nilsson To: , Subject: [PATCH] testsuite: Require thread-fence for 29_atomics/atomic_flag/cons/value_init.cc MIME-Version: 1.0 Message-ID: <20230926144058.874C82042E@pchp3.se.axis.com> Date: Tue, 26 Sep 2023 16:40:58 +0200 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF0001E9C2:EE_|DU0PR02MB8220:EE_ X-MS-Office365-Filtering-Correlation-Id: 2c8b5c43-0f0f-4f83-e248-08dbbe9e9978 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /o6TWmsVeuAexwHfLMiaiEKAPTgZTUP7OF25F0lnZ3HwXrUhvpgXGGmsrzYgmcW/Y52lK2ykeaa37Jp99/hKRls9+NtlrLAWU3bsrJUVvgowhGbMDDCluSmAG88lZJzjZizJPZtg1UYBZYjXWxbEauG4M3zoBHmuLQuc8xqm5+oWGS9jtI26Vgcmurx7rGpJtDX9Io6/dF5GYm0A3OCaoLmAg/kvlGgrIQlwDW4qLsxyKFoUhL4+l5OaWr34ZCyP6sUJpi1ncIyU/Yfy6SnqHotLDbHjhF1TLlM2eU5Ik072iDJAzYsI7IdW5VIAuH9TO7Vm3IYGOEP0qUZ0WMcmHr+QT4sD5HXEUciXuoyooKzQelijKjuRMd4R3MidYK6M6mkC95dcFZY6RE3rbOrP4eXe95/9ypMClMeBqG34O7+p71vpOGCwXsdu9zlqbiSsFG93dHUYX1XMRZX8XoCkHgfDpcu/I2u9WvG5hBbMqr0eCnXvTJALZstXRTxh4eXgjsKMLIRULUTwiewk/u7pH7qBJYUFUNdHYy+hkl9PwOwrZulwgZQ7Vv2bJ4YmDgrdJEMmzqEPUtgV4LSGfqzbOARvS+5dkSsywiq2zWL0Ff2OgiAWhhmyTwTXwU+Q4XYikfrQbe1hDVXK5ins77bMqTakBGJQBzOyFuFLlA42XtaNOHzc1Ite9y+MpG1xO6uWQU6KMeXVDtwcvfiu/f7ExTjnmYraiHq84ybjTNyeTdk9eXO97HOvEzYLXoSZW+itGAYd2HAt93NjYzGM8MQjSQ== 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)(346002)(376002)(136003)(39860400002)(396003)(230922051799003)(186009)(82310400011)(1800799009)(451199024)(40470700004)(46966006)(36840700001)(40480700001)(5660300002)(82740400003)(356005)(40460700003)(2906002)(47076005)(36860700001)(4744005)(81166007)(70206006)(110136005)(70586007)(26005)(42186006)(1076003)(6266002)(316002)(336012)(8936002)(8676002)(426003)(450100002)(478600001)(41300700001)(33656002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2023 14:40:59.1222 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2c8b5c43-0f0f-4f83-e248-08dbbe9e9978 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: DU2PEPF0001E9C2.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR02MB8220 X-Spam-Status: No, score=-12.0 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 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: 1778111550764130359 X-GMAIL-MSGID: 1778111550764130359 Ok to commit? -- >8 -- A recent patch made __atomic_test_and_set no longer fall back to emitting non-atomic code, but instead will then emit a call to __atomic_test_and_set, thereby exposing the need to gate also this test on support for atomics, similar to r14-3980-g62b29347c38394. libstdc++-v3: * testsuite/29_atomics/atomic_flag/cons/value_init.cc: Add dg-require-thread-fence. --- libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/value_init.cc | 1 + 1 file changed, 1 insertion(+) 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 084e2930f7e2..f3f38b54dbcd 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,6 +16,7 @@ // . // { dg-do run { target c++20 } } +// { dg-require-thread-fence "" } #include #include