From patchwork Mon Sep 12 08:19:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marc_Poulhi=C3=A8s?= X-Patchwork-Id: 1137 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5044:0:0:0:0:0 with SMTP id h4csp1779720wrt; Mon, 12 Sep 2022 01:23:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR6jexgZnhEHGiL6utCDSuqYEFrYhZVtWJuZIY62HQzwsLOfBgcGd5tcA5LOR3/W54oe1Uhy X-Received: by 2002:a05:6402:524a:b0:450:bab6:cd5f with SMTP id t10-20020a056402524a00b00450bab6cd5fmr16266244edd.233.1662970990216; Mon, 12 Sep 2022 01:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662970990; cv=none; d=google.com; s=arc-20160816; b=d56Me6slaFd1/gBff7VUT5dL7GtmHv2Z4WCssT28b2ZSINAHZn1sIhohbkBMJjCb8i MrubCZEoW9IjwbiUDkLeliMbUI4PJAZHeib9YBgK2kmnibqHcat3+ZS2kJh8LGfJ2m2W 07oIzin7W0kqdMBCVeKaCPpFRpblNPCozep9enhWHliM0jbxaSCC+3eLB+0Bkl2jzDrL APJ5LjzNooVWiybi8L+7ZIHvsVMkyiPXDDYkp5WiQDZ0EA2RXNJfdVvZ0BB12oLVkbOe w2XLiUdVz+0owTcMvmk5GYZorSF/Q0+yA3n3zMAtNZOabQNuhRRS/uuZ2BgUtOLneKkZ oGqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :content-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=wdHg3nqRmINPNcrDq2N6xV7uKbLB6+3Cp0m+uYEizGY=; b=X8VO65cK6PcdboVBTL4gohQc/IXoaZMPA57zjopUAtIBfW3yBfWpfY1XvbE0tGrliZ tJg+FobI0h36nEjx58V+OvRpsgV6E4Hrhp0+XENpiX33M7fdR0/pYiuCSlIAvTojUv8p 61wIXgvOeTnVGu850lXpuFM7+wuWTF9ZM4mXqWT9SgBHez7SFV4fKclbfyb3bxigXTTo tFiVW1C1a8lERboExyMdxlJSn+fdZ3wl2ioF+ITukTNeNOALn1rLG0f9d6vFGK1N7kFp 9hAPUG+qEfgp7O+V0R4hOpfZp0KWanxKndMk8MaJleh600papjd5Tg7lqliYNf/DsB9z uTOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=qvIg4yoH; 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=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id bb4-20020a1709070a0400b007317274bb0dsi1518536ejc.979.2022.09.12.01.23.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 01:23:10 -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=@gcc.gnu.org header.s=default header.b=qvIg4yoH; 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=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BDBDE389EC5F for ; Mon, 12 Sep 2022 08:21:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BDBDE389EC5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662970867; bh=wdHg3nqRmINPNcrDq2N6xV7uKbLB6+3Cp0m+uYEizGY=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=qvIg4yoHuE5K2eiCsulX32fasuAQ7lFCRZGKBkGWUlnl9bnkhDUXXDXSRLuyD2wL4 2lHL6yBnoXlweyLSgGxkKCoFHD/BBrd5r7S7cYK9Qa18DxnKkjgsSu4bv4a4Y+ddPC sSWI0e07Vzg8DQ6JJwsRWi4WtLx8fMbo9AXVXijI= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id DEE843857004 for ; Mon, 12 Sep 2022 08:19:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DEE843857004 Received: by mail-wr1-x42e.google.com with SMTP id d2so14085007wrn.1 for ; Mon, 12 Sep 2022 01:19:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date; bh=wdHg3nqRmINPNcrDq2N6xV7uKbLB6+3Cp0m+uYEizGY=; b=RKB+3LCAIj/VvzYuiHExoj+VAkWLPFQss5Wj8WDUahlzRut4x9dbK0JrquKMAYVDGP wRv2goSDFPCRMCAWtyvq3R4ceJxiFkUKPzmcGjzaCnystKHZPrctT/imMNXcy6vQYvDL md0zXIIslBu3i+FLMoVHCwjCz+62ZrBnliEAqPq/gHbxU/Bu+WAre5AWD4QgolP7rrPS phDaPkT79ncV+N75RT6lkRqlkhIir/EtH8n81BxTZ5cNO90ZdaRhCyhMuNCiJ2LPMYpQ LPAVJ3xNP+BrIUT3r/lgTBHt23wgH+8iTgcK3aga7dHARR8mS+rp+/gRDz5XbATIiphh ScsQ== X-Gm-Message-State: ACgBeo1gIlhAfEjVsqKNZfXXopUbJ3uVRSWiPyRaXS1/s1v8XAdTC1XW m5TqVpdjnAesnlyBfheqkfJELHHEQoE/4w== X-Received: by 2002:a5d:5987:0:b0:22a:46f5:1d95 with SMTP id n7-20020a5d5987000000b0022a46f51d95mr6053217wri.608.1662970755731; Mon, 12 Sep 2022 01:19:15 -0700 (PDT) Received: from poulhies-Precision-5550 (lmontsouris-659-1-24-67.w81-250.abo.wanadoo.fr. [81.250.175.67]) by smtp.gmail.com with ESMTPSA id v11-20020adff68b000000b0021e5adb92desm6598859wrp.60.2022.09.12.01.19.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 01:19:15 -0700 (PDT) Date: Mon, 12 Sep 2022 10:19:14 +0200 To: gcc-patches@gcc.gnu.org Subject: [Ada] Disable Support_Atomic_Primitives on QNX and VxWorks targets Message-ID: <20220912081914.GA1512783@poulhies-Precision-5550> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?Marc_Poulhi=C3=A8s_via_Gcc-patches?= From: =?utf-8?q?Marc_Poulhi=C3=A8s?= Reply-To: Marc =?iso-8859-1?q?Poulhi=E8s?= Cc: Patrick Bernardi Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1743751469143144746?= X-GMAIL-MSGID: =?utf-8?q?1743751469143144746?= The current configuration of the QNX and VxWorks runtimes does not support atomic primitives. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * libgnat/system-qnx-arm.ads: Set Support_Atomic_Primitives to false. * libgnat/system-vxworks7-aarch64.ads: Ditto. * libgnat/system-vxworks7-aarch64-rtp-smp.ads: Ditto. * libgnat/system-vxworks7-arm.ads: Ditto. * libgnat/system-vxworks7-arm-rtp-smp.ads: Ditto. * libgnat/system-vxworks7-x86-kernel.ads: Ditto. * libgnat/system-vxworks7-x86-rtp-smp.ads: Ditto. diff --git a/gcc/ada/libgnat/system-qnx-arm.ads b/gcc/ada/libgnat/system-qnx-arm.ads --- a/gcc/ada/libgnat/system-qnx-arm.ads +++ b/gcc/ada/libgnat/system-qnx-arm.ads @@ -142,7 +142,7 @@ private Stack_Check_Probes : constant Boolean := True; Stack_Check_Limits : constant Boolean := False; Support_Aggregates : constant Boolean := True; - Support_Atomic_Primitives : constant Boolean := True; + Support_Atomic_Primitives : constant Boolean := False; Support_Composite_Assign : constant Boolean := True; Support_Composite_Compare : constant Boolean := True; Support_Long_Shifts : constant Boolean := True; diff --git a/gcc/ada/libgnat/system-vxworks7-aarch64-rtp-smp.ads b/gcc/ada/libgnat/system-vxworks7-aarch64-rtp-smp.ads --- a/gcc/ada/libgnat/system-vxworks7-aarch64-rtp-smp.ads +++ b/gcc/ada/libgnat/system-vxworks7-aarch64-rtp-smp.ads @@ -151,7 +151,7 @@ private Stack_Check_Probes : constant Boolean := True; Stack_Check_Limits : constant Boolean := False; Support_Aggregates : constant Boolean := True; - Support_Atomic_Primitives : constant Boolean := True; + Support_Atomic_Primitives : constant Boolean := False; Support_Composite_Assign : constant Boolean := True; Support_Composite_Compare : constant Boolean := True; Support_Long_Shifts : constant Boolean := True; diff --git a/gcc/ada/libgnat/system-vxworks7-aarch64.ads b/gcc/ada/libgnat/system-vxworks7-aarch64.ads --- a/gcc/ada/libgnat/system-vxworks7-aarch64.ads +++ b/gcc/ada/libgnat/system-vxworks7-aarch64.ads @@ -148,7 +148,7 @@ private Stack_Check_Probes : constant Boolean := True; Stack_Check_Limits : constant Boolean := False; Support_Aggregates : constant Boolean := True; - Support_Atomic_Primitives : constant Boolean := True; + Support_Atomic_Primitives : constant Boolean := False; Support_Composite_Assign : constant Boolean := True; Support_Composite_Compare : constant Boolean := True; Support_Long_Shifts : constant Boolean := True; diff --git a/gcc/ada/libgnat/system-vxworks7-arm-rtp-smp.ads b/gcc/ada/libgnat/system-vxworks7-arm-rtp-smp.ads --- a/gcc/ada/libgnat/system-vxworks7-arm-rtp-smp.ads +++ b/gcc/ada/libgnat/system-vxworks7-arm-rtp-smp.ads @@ -148,7 +148,7 @@ private Stack_Check_Probes : constant Boolean := True; Stack_Check_Limits : constant Boolean := False; Support_Aggregates : constant Boolean := True; - Support_Atomic_Primitives : constant Boolean := True; + Support_Atomic_Primitives : constant Boolean := False; Support_Composite_Assign : constant Boolean := True; Support_Composite_Compare : constant Boolean := True; Support_Long_Shifts : constant Boolean := True; diff --git a/gcc/ada/libgnat/system-vxworks7-arm.ads b/gcc/ada/libgnat/system-vxworks7-arm.ads --- a/gcc/ada/libgnat/system-vxworks7-arm.ads +++ b/gcc/ada/libgnat/system-vxworks7-arm.ads @@ -146,7 +146,7 @@ private Stack_Check_Probes : constant Boolean := True; Stack_Check_Limits : constant Boolean := False; Support_Aggregates : constant Boolean := True; - Support_Atomic_Primitives : constant Boolean := True; + Support_Atomic_Primitives : constant Boolean := False; Support_Composite_Assign : constant Boolean := True; Support_Composite_Compare : constant Boolean := True; Support_Long_Shifts : constant Boolean := True; diff --git a/gcc/ada/libgnat/system-vxworks7-x86-kernel.ads b/gcc/ada/libgnat/system-vxworks7-x86-kernel.ads --- a/gcc/ada/libgnat/system-vxworks7-x86-kernel.ads +++ b/gcc/ada/libgnat/system-vxworks7-x86-kernel.ads @@ -146,7 +146,7 @@ private Stack_Check_Probes : constant Boolean := True; Stack_Check_Limits : constant Boolean := False; Support_Aggregates : constant Boolean := True; - Support_Atomic_Primitives : constant Boolean := True; + Support_Atomic_Primitives : constant Boolean := False; Support_Composite_Assign : constant Boolean := True; Support_Composite_Compare : constant Boolean := True; Support_Long_Shifts : constant Boolean := True; diff --git a/gcc/ada/libgnat/system-vxworks7-x86-rtp-smp.ads b/gcc/ada/libgnat/system-vxworks7-x86-rtp-smp.ads --- a/gcc/ada/libgnat/system-vxworks7-x86-rtp-smp.ads +++ b/gcc/ada/libgnat/system-vxworks7-x86-rtp-smp.ads @@ -149,7 +149,7 @@ private Stack_Check_Probes : constant Boolean := True; Stack_Check_Limits : constant Boolean := False; Support_Aggregates : constant Boolean := True; - Support_Atomic_Primitives : constant Boolean := True; + Support_Atomic_Primitives : constant Boolean := False; Support_Composite_Assign : constant Boolean := True; Support_Composite_Compare : constant Boolean := True; Support_Long_Shifts : constant Boolean := True;