From patchwork Tue Oct 11 22:42:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 1937 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp2328636wrs; Tue, 11 Oct 2022 15:43:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5YLmitX296/4Px6bkyvwQeAQ5LcwmYFZWGr97vIrVVqRhByvalqgO94ghNYgn3vA1DsRRB X-Received: by 2002:a05:6402:430a:b0:459:a049:76da with SMTP id m10-20020a056402430a00b00459a04976damr24204171edc.272.1665528199793; Tue, 11 Oct 2022 15:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665528199; cv=none; d=google.com; s=arc-20160816; b=rcXRXV5I1ejuvDtdSRJbE0q68IEUCjh8CyTAgzPORTYbFPXhVrg4qYZ4poznU7RERJ CVw5f7d8XEFyu39/qyBG7oMh7KTr6T/NnG+P8rLDnoRMlpnHH4teVoIXTVWX0gdAqHGr WMZD1MxOPeW7RQPjKK/rzjPnrjC7G51VCksRc9iUGSXAWW41QZ7JbT5Fr0nTUTuxTzUS LRGLNo3V5DpVHRDjQZicwH1StNabmmK35nGxK15Ujcn10xQ7ybYp9lmHyeS6G43zjXBl XWZxAxmZWqSjBjyG/F2SkN1MOApo+WHaPekVRFhTx6ARVX2B8ewVN44mMSdgemrze+MN 5ZZQ== 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:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=rONbOyRUYPShUsx9mcAaXeS8LFiKPT5f9UPJxj3Ywok=; b=JAJp2OYzgQEG7eqxTZgoX4og+xx2+dQSsWbeZJQtlVq00xETskAQbpRJ9I98F3Lyb7 Os0sNopo0jfQlIxQE30ww7rZOemf3W4zuiE5jMV5vtYTBIpCvkCU6IZFPRM2RdFYbc59 Qn1+PKYCg6Ofg1UKf3Sc0j5c7ZnUKoWTtqmXMQTS8CM8mmRHH/Q/JeqQqXQFog/n2QGH EasMAqT2okYIkbeE91FUSuj6Xqi1CUNmNfrg4UyGI8nXwCBIe4CagqYQ1oy7UjvQMi53 NzvU9G7VjKQzzuhPs3a/TxiHI4fkVNA+eWQJJL7P2ftAC17xG7+/MXD99gjlVKpOHFz6 I0LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=O1lRD5ol; 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 g5-20020a50d0c5000000b004519cd16132si15301035edf.61.2022.10.11.15.43.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Oct 2022 15:43:19 -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=O1lRD5ol; 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 D18793851C04 for ; Tue, 11 Oct 2022 22:43:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D18793851C04 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665528198; bh=rONbOyRUYPShUsx9mcAaXeS8LFiKPT5f9UPJxj3Ywok=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=O1lRD5olASCu++YfW5VUHEllfv3oHlAVbvmtyLBYrICLp+LKMLD4tPadZNAqdofRd Zca5NnwL4xx6NSEjE3q6fSaJ0CsmhfWXxpIx6aURZKksaOWwWhIxPT9NWSKO3++2Eg 4zKtyt/0z07dJzcBfSOZZpSxQJAHLOENGoXup7Z8= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id 20ACE385382B for ; Tue, 11 Oct 2022 22:42:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 20ACE385382B Received: by mail-wr1-x434.google.com with SMTP id w18so23709443wro.7 for ; Tue, 11 Oct 2022 15:42:34 -0700 (PDT) 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:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rONbOyRUYPShUsx9mcAaXeS8LFiKPT5f9UPJxj3Ywok=; b=X8i98xfXJK/a0P+9NFH+YriakQLwTVms8Rz4pNFj/8gWaWF7gsOm7Z189QZSFqRP8O m/1j2BjSiD7cRyKQDZ+eqgpVtbc7k1Xpzzwo1XD7C1NOcQzOpOh7rEN310cGUoLLOtEv GaPJxVsVfPBhSn8HUvcHe/ZBqEsmuZVaQ6xazR2OXMSICO8gFeKnCpOKAyeY+PlklGQM OHFlN0mvo6NkqJMOuoWkd4qvPPGnksVGO7mY2VZQwa0QzH8EEGmC/CY5Jt++bgYuiQji RVp4fJDf1UjVi7rYmAAexj0qUb0Z3tLP3eNDhCG+EyB7lXYQBO7Gkfq5WiVw05uH0WnC iGrg== X-Gm-Message-State: ACrzQf0lOnIL8jnQjkO92f5KiU7uvdoY7ixEmpbCdWSggqguY7HUsCrW /n77A5KNZvashjqvvdYHEUad5in1NmlDyw== X-Received: by 2002:a05:6000:1882:b0:230:9595:4131 with SMTP id a2-20020a056000188200b0023095954131mr7968402wri.17.1665528152749; Tue, 11 Oct 2022 15:42:32 -0700 (PDT) Received: from fomalhaut.localnet ([2a01:e0a:8d5:d990:e654:e8ff:fe8f:2ce6]) by smtp.gmail.com with ESMTPSA id u9-20020a5d4349000000b0022cdb687bf9sm15747699wrr.0.2022.10.11.15.42.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Oct 2022 15:42:31 -0700 (PDT) X-Google-Original-From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [Ada] Enable support for atomic primitives on SPARC/Linux Date: Wed, 12 Oct 2022 00:42:30 +0200 Message-ID: <2257020.ElGaqSPkdT@fomalhaut> MIME-Version: 1.0 X-Spam-Status: No, score=-11.0 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: Eric Botcazou via Gcc-patches From: Eric Botcazou Reply-To: Eric Botcazou 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?1746432898006783120?= X-GMAIL-MSGID: =?utf-8?q?1746432898006783120?= The SPARC/Linux port is very similar to the SPARC/Solaris port nowadays so it makes sense to copy the setting of the support for atomic primitives. This fixes the single regression in the gnat.dg testsuite: FAIL: gnat.dg/prot7.adb (test for excess errors) Tested on SPARC64/Linux, applied on the mainline. 2022-10-11 Eric Botcazou * libgnat/system-linux-sparc.ads (Support_Atomic_Primitives): New constant set to True. diff --git a/gcc/ada/libgnat/system-linux-sparc.ads b/gcc/ada/libgnat/system-linux-sparc.ads index cc502da3e5b..6d4ee380b2d 100644 --- a/gcc/ada/libgnat/system-linux-sparc.ads +++ b/gcc/ada/libgnat/system-linux-sparc.ads @@ -133,6 +133,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_Composite_Assign : constant Boolean := True; Support_Composite_Compare : constant Boolean := True; Support_Long_Shifts : constant Boolean := True;