From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-wr1-x434.google.com with SMTP id w18so23709443wro.7 for ; Tue, 11 Oct 2022 15:42:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=rONbOyRUYPShUsx9mcAaXeS8LFiKPT5f9UPJxj3Ywok=; b=N0T/CYI3YdUBal1kpNbpOzUuCevY737LhJLk3kQPdHzf/Iuks+93g7WuYmD+6w9ucm ZU/5ompF5EG9+m7W0uMCeP92usJ8aoxuSsC0keoHcEsqkZsVMuvJ0v2MYoORKBw+Kbu7 gZOeDQNaG9SvcxUgM/dV6Vk6lzEXMdoCAvM1hN1Kxu92vlKVJ7PJ35qI9TMlynUr/lRd 402WVQWwq2x1/UtBUW3SMfT8wB6qiunwfEXD049FWBzmsHHsI/LNpj9awCrPRkYh8xjp OHT4d/nsIqSmUjNqy7MxFnPyEQE6VKCxLhti7gw+C1HJk82jR15SgHwvTYUbGB1blesB U/HA== 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-Google-Smtp-Source: AMsMyM4zXD/VyS9YwrXZfuC35NeH1xyDudCnGcmsNqkyxafLSbmFb4Kx206Wb9heBaZOTmIO9GdoOw== 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) From: Eric Botcazou 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 Content-Type: multipart/mixed; boundary="nextPart4748355.GXAFRqVoOG" Content-Transfer-Encoding: 7Bit 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 List-Id: This is a multi-part message in MIME format. --nextPart4748355.GXAFRqVoOG Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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. -- Eric Botcazou --nextPart4748355.GXAFRqVoOG Content-Disposition: attachment; filename="p.diff" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="utf-8"; name="p.diff" 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; --nextPart4748355.GXAFRqVoOG--