From patchwork Mon Sep 12 08:19:15 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: 1135 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5044:0:0:0:0:0 with SMTP id h4csp1779281wrt; Mon, 12 Sep 2022 01:21:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR6F4qvd6DlAT/KQrOgxJuVrhdiS5S4JXYSBRzGHQF1nwKWpDfmUb92bwzdmtstd7smaMCWk X-Received: by 2002:a17:907:1b1c:b0:72f:9aac:ee41 with SMTP id mp28-20020a1709071b1c00b0072f9aacee41mr17787963ejc.56.1662970873617; Mon, 12 Sep 2022 01:21:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662970873; cv=none; d=google.com; s=arc-20160816; b=mpxhJfufxxZuosaRSpOD+zPj1pFhIlF0S+pdReQ7+4DMHYp6cBMctoCHuewh0+WKfX 8RM1HL6t1Vt89iFxI9B1FsIxlzH6DWay0Mz5FpR4eNBPmOa/sNjkg4Wt2AfEo11Wz52+ GJT5YFbePh7v2ZS3ybxXDxKXaMpJGbXh+HcSX6+/h0eJTS5j8dxolsls8xpf1BlFHwpw yO1Wd0ELIOnsSRvC+n1bbXeow5O8ue068oCDVHun9IM1JYC6KAjBU7EwAO7qFHdtr15S 5XlWRZEFnv8NNPnimWVBMom82k2/LWLHPeMYPHWBoIKgt53qkWcB9ztMqPbkcXB5mdWG HYbA== 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=qsd4KoLcGKCTc7r1epoMcSAKSwqX9/FZCKwQSfcJATU=; b=UIIsxFRaAjiLBRSQuvfZbppevV4ROxUNV2uPbr8Nz6jkuo7Rlkf8OsEiXeSsWrI0CT eTQH2KVeZ8RTS+owAJNwwuEBH6Sy1yAxMMhie/HhRP8SJbiS4we4atOqqN+6k++0rvyG uyqheACBtriF8G2SfiDmqfmX5HXku4Uqmb3KV2CqUhf8scSFXP3PnnAESNTxonZqnSSL I1wpTTh6U+vmyewZUEYbyxZDqZpbo9AWV6dwx1d6DEJZ6Otv55oFETNvlGKBORyAnPdb HHgmOH+PzPRpEcr3M42EUqfevhsslJuIV8g6+o19koTM9XP7kRgV92zvJfRAy7JwP7q4 oNtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=E09g7xQ6; 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 xh13-20020a170906da8d00b00773db392e1esi5905640ejb.997.2022.09.12.01.21.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 01:21:13 -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=E09g7xQ6; 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 E8C65386C587 for ; Mon, 12 Sep 2022 08:20:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E8C65386C587 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662970815; bh=qsd4KoLcGKCTc7r1epoMcSAKSwqX9/FZCKwQSfcJATU=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=E09g7xQ6pM2WrNkN+uKOtQ41YgMn22OFef0fHmKvkrB+8I+qXflOW602b17yGCGUZ 8dHeDlfada28SsKzxeQJuNd8tKs43VOvuht6z9hYdBLvUblpWVmFf/n9YKvS0TVONM xSlvQyOwy5WR8xAJcmzjHEjtNmo6Zwey03w1fTyA= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by sourceware.org (Postfix) with ESMTPS id EF93D3856DD9 for ; Mon, 12 Sep 2022 08:19:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EF93D3856DD9 Received: by mail-wm1-x331.google.com with SMTP id v185-20020a1cacc2000000b003b42e4f278cso7415266wme.5 for ; Mon, 12 Sep 2022 01:19:17 -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=qsd4KoLcGKCTc7r1epoMcSAKSwqX9/FZCKwQSfcJATU=; b=IaG0K4ncjOQhAVN4TVOmMXl2fva6bBBu3m8XN3zhR8PhtWa+rQSKd1hovhgtG6dDWR 4HS+z448nfpqcRnyKym8oynrNomwz2QpCuizGbxZI0KbrZUoxmKMxpb5r7BKv/XFZKV6 Wh03TRB+7rPM7G8d3EsTP336iPrXpT9oLf9XXfOYK6yaCScXJffFpffx3XHKfgpPzrx3 MUvoHEXJiI84uSHWtOJ5NI/d1gcwrKPz5X5BtV2AH5PAJZgl8q+DPGPzBp9oazEZvR/z yXGl0+3A4jzTbwLz4UEvFYMyUrH1+I2GNDxT8/DekPXwVPxW+2A0viLj/o5RHrYjESU+ jHoA== X-Gm-Message-State: ACgBeo1DbS9DNL72GpY98jmSI0Yh1mcoluyMgb/qoWb3MlBFkpJs6M6w pGdOHR8mFdZRI1G/jVKX2lsUV9iMd9Fm0w== X-Received: by 2002:a1c:ed0b:0:b0:3a6:30c:12f with SMTP id l11-20020a1ced0b000000b003a6030c012fmr12948124wmh.133.1662970756813; Mon, 12 Sep 2022 01:19:16 -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 l4-20020a05600c47c400b003a541d893desm8517953wmo.38.2022.09.12.01.19.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 01:19:16 -0700 (PDT) Date: Mon, 12 Sep 2022 10:19:15 +0200 To: gcc-patches@gcc.gnu.org Subject: [Ada] Disable Support_Atomic_Primitives on x86_64 VxWorks Message-ID: <20220912081915.GA1512798@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?1743751346513172145?= X-GMAIL-MSGID: =?utf-8?q?1743751346513172145?= The current configuration of the x86-64 VxWorks runtimes does not support atomic primitives. x86-64 VxWorks was missed from the previous patch. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * libgnat/system-vxworks7-x86_64-kernel.ads: Set Support_Atomic_Primitives to false. * libgnat/system-vxworks7-x86_64-rtp-smp.ads: Ditto. diff --git a/gcc/ada/libgnat/system-vxworks7-x86_64-kernel.ads b/gcc/ada/libgnat/system-vxworks7-x86_64-kernel.ads --- a/gcc/ada/libgnat/system-vxworks7-x86_64-kernel.ads +++ b/gcc/ada/libgnat/system-vxworks7-x86_64-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_64-rtp-smp.ads b/gcc/ada/libgnat/system-vxworks7-x86_64-rtp-smp.ads --- a/gcc/ada/libgnat/system-vxworks7-x86_64-rtp-smp.ads +++ b/gcc/ada/libgnat/system-vxworks7-x86_64-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;