From patchwork Mon Nov 14 13:51:56 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: 19817 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2156086wru; Mon, 14 Nov 2022 05:55:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf4YnlGwiI0pVrnj3yVi4lJDGLHhx+DMgLSpaci+FDvz0lE8SZQtRvgSJmp/UVDXCaSg4gGX X-Received: by 2002:a05:6402:6c8:b0:467:205b:723d with SMTP id n8-20020a05640206c800b00467205b723dmr11623597edy.69.1668434127979; Mon, 14 Nov 2022 05:55:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668434127; cv=none; d=google.com; s=arc-20160816; b=bOKY+viLLYHgbyswWrEO0b0tQbgoHnliKLY93btN9xrnu1N4/P0MermxJzuW5BWj8U E/2XwxC9zJ1PjnC3odbN6ATzl0OTLa+o/4ZgtVDLADnpxDd7FBK06y8qHrrfLCBxmCdp HRu1MqSmnCrPsmKtUrXtu8sWO7TqWjMum64fICHW0wR/9UzujoLfNc410JK7j0auPVrB YY4Ux97tzmAeeZVp+PQGpLNu78FeRPkMqvNqU/oYvdW24d2dpDR695sHCHrR/4VaJz92 qgCgkPYXTw5ExFeYPrlZ8MVtcPl2YWXdQ0CcLNKudQ2DEZZ85oDbx6UpPbuKljd1G16T OIPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=1GJG9gNRrlXVBvLZlZfswXZO12yf5k3Te6tim6yyHNQ=; b=wFUDZiWZnGgB/y6pcJLey9PZhvCTTwE4sa14FLCe94eQWDKwslsok9KrptD7u3ymtP 03nqomSAdFvJ2HZiaVeuiXQXJQc0Grf78oi8SCRaiuFdaEAD4lovS7In2BdtuQbkGwxC n8NNly+WB1AssKWNnvaRessh6dQr//8+sY7b7SOCAh66EHH35DKzXBsV3KBgoS+ihdU/ a8qZBIYtNX8C5m8xipkXBk39pdiJnpcAN9KjyO6CE5ti1eDdJBunPIj5bi+nP7qHHy9L BMCI25kIu0AeSJgVfq3NILwhagiEgMY3L1H34IgxbWnK3ZDtCKCFdqsZ4ug9P4LdycnD kmnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=cLXKDbzz; 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 s5-20020a056402520500b0043dc00e0740si10199510edd.373.2022.11.14.05.55.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 05:55:27 -0800 (PST) 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=cLXKDbzz; 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 90B293894C04 for ; Mon, 14 Nov 2022 13:53:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 90B293894C04 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668434026; bh=1GJG9gNRrlXVBvLZlZfswXZO12yf5k3Te6tim6yyHNQ=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=cLXKDbzztnPEmcttp9EsrLxt9Hrgni4M7qUqFO8Vdom5SoRpuVsoSetcO+dJ3v9da XMlWTJiBSCwbNvQQnh/t5tcXVvhak0DsN3joR740gkuSvseOnNYzKuEYVLV9gnqAIt fNxNsf6S2lksyB72uV9wwHHIJgoyur83wwTCdXsk= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by sourceware.org (Postfix) with ESMTPS id 2328538438AB for ; Mon, 14 Nov 2022 13:52:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2328538438AB Received: by mail-wm1-x329.google.com with SMTP id t25-20020a1c7719000000b003cfa34ea516so9189441wmi.1 for ; Mon, 14 Nov 2022 05:52:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1GJG9gNRrlXVBvLZlZfswXZO12yf5k3Te6tim6yyHNQ=; b=gnu+QWeneeoO6BuW751eVQk/JV9A49BSgOnNWhBReRqLCS8kFjH57FwTOI5CG96tfx vpwtFNBxOqCnEnbUOR5df+UiWUBSCyxTK4O32GRiHlwWSqTezrlaAIGuom6JS6J6wIwq fJsQGzRcEezm+kpKVDrUT/3NLCPYkhhVdbGzBxvwF9fdA/PtEi2v+qPiZKP4oWrAuKMP Mx5h6o5Db36oJoSq33tmSvUFjVjf0H5rXYdwMXNZfop4o3rXM9/TOhGFgV6tshQs5hw8 u6HuyI2SnQnq98/fKolRhZvxzOmWAXNBOzU+OqaqqOUD8YU7e1QfzgtL+b9UPyx3GLKT 92/w== X-Gm-Message-State: ANoB5pmBl6VhpjfYgjyIkiIbbswLo83cCGkz6APkWx0jMERzR5LP1WEJ +N7qxvQ72XkajS/RpXPzPl5Gu2cv21DdMQ== X-Received: by 2002:a05:600c:204d:b0:3cf:a3c4:59b3 with SMTP id p13-20020a05600c204d00b003cfa3c459b3mr7996935wmg.198.1668433918985; Mon, 14 Nov 2022 05:51:58 -0800 (PST) Received: from localhost.localdomain (static-176-191-105-132.ftth.abo.bbox.fr. [176.191.105.132]) by smtp.gmail.com with ESMTPSA id o5-20020a05600c510500b003cfa3a12660sm24714411wms.1.2022.11.14.05.51.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 05:51:58 -0800 (PST) To: gcc-patches@gcc.gnu.org Cc: Patrick Bernardi Subject: [COMMITTED] ada: Enable Support_Atomic_Primitives on QNX and RTEMS Date: Mon, 14 Nov 2022 14:51:56 +0100 Message-Id: <20221114135156.52647-1-poulhies@adacore.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-13.4 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 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: =?utf-8?q?Marc_Poulhi=C3=A8s?= 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?1749479984542696859?= X-GMAIL-MSGID: =?utf-8?q?1749479984542696859?= From: Patrick Bernardi QNX and RTEMS support 64-bit atomic primitives. gcc/ada/ * libgnat/system-qnx-arm.ads: Set Support_Atomic_Primitives to True. * libgnat/system-rtems.ads: Add Support_Atomic_Primitives. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/libgnat/system-qnx-arm.ads | 2 +- gcc/ada/libgnat/system-rtems.ads | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/ada/libgnat/system-qnx-arm.ads b/gcc/ada/libgnat/system-qnx-arm.ads index 038fe6c9230..749384f9fd1 100644 --- 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 := False; + Support_Atomic_Primitives : constant Boolean := True; 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-rtems.ads b/gcc/ada/libgnat/system-rtems.ads index 5959b72405b..52ee299c260 100644 --- a/gcc/ada/libgnat/system-rtems.ads +++ b/gcc/ada/libgnat/system-rtems.ads @@ -150,6 +150,7 @@ private Stack_Check_Probes : constant Boolean := False; Stack_Check_Limits : constant Boolean := False; Support_Aggregates : constant Boolean := True; + Support_Atomic_Primitives : constant Boolean := True; Support_Composite_Assign : constant Boolean := True; Support_Composite_Compare : constant Boolean := True; Support_Long_Shifts : constant Boolean := True;