Message ID | 20220912081932.GA1512996@poulhies-Precision-5550 |
---|---|
State | New, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5044:0:0:0:0:0 with SMTP id h4csp1780849wrt; Mon, 12 Sep 2022 01:28:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR6JPm0hwa/un5+6XCzVP/cQx9pX+FSb1upiNkxtQwQzIS0ZK6u6QWxvw6Yh/gSYobp3d+GK X-Received: by 2002:a17:907:9484:b0:738:6f9f:6032 with SMTP id dm4-20020a170907948400b007386f9f6032mr17938339ejc.602.1662971287174; Mon, 12 Sep 2022 01:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662971287; cv=none; d=google.com; s=arc-20160816; b=kH9zCU1OiL3sFqUec23UZhxFzSaNEApBGPDkbpx2Sfuv9gWjH8ifAPfeB7Ch4oczTI m5G7M6xtvX4A7W5giySNYzOs+kX6eBGYB7N8hOLymfRT3Q4+t9Yf1P3t9h1fewayrYk8 FglWfvCVyaSF9vmfakj5N+hFWiQYtqQbKzbz5cSyNtFnkIFoGZoIYB1/rVJCVS0j7c4M +V72RqE/eRz9DojP5tGGsU6VuoYZSdgJ6xPqyhw9eg0MIKMqu4tROWQczxnXe4hsS1+B FTNQfwKm68doTOTphIXqUPRo4ET6rUiHRW5DR3fzwoxa3HBGebTBmEqifmGXaBvCtDqS l1oQ== 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=+w+hQw1IFuVdamYe+rJbRq5/FWg29rg7LpmtPQE4lgA=; b=iITmO4VRuTv9yr/2jX/hDivxyYRyBMJN1Y0haJOF7KEl4TStQ+xw6O0QzbVzml56wU KmxgNoPhaw7wdvLoIF+Rig0SkZLx6MLc8NN3fXwKiO3tO4BgF0tG2Aybr3aWqttLaP1v HPm6VJMLNflCYouNPcROdjiaP6xi46kdPbIErZxEI9VxNzZ9dyYfDWd1Sp3SoyDu0hvZ s2o79H6yjLFXXKrpnj40piz4QdbADTEctGVnJG4DXKnPK3Pewb3f2tmIQO8pEaZIpmyY vtlJNw4cm78VK5Ok8P75k1vzVI0Uo1dt+eq1z4pk8XQFS4tWhoEJ8NxKYCQwvVJuIQaj w3gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=rbp2zQxt; 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 h8-20020a0564020e0800b00452154c138dsi408317edh.330.2022.09.12.01.28.06 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 01:28:07 -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=rbp2zQxt; 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 5A00838983A9 for <ouuuleilei@gmail.com>; Mon, 12 Sep 2022 08:23:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5A00838983A9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662970999; bh=+w+hQw1IFuVdamYe+rJbRq5/FWg29rg7LpmtPQE4lgA=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=rbp2zQxtFh+DXjqTZoSYv6IZcUQtGq+GzyaDEylcBckXntQ0RPzfMGJ7thgJu/txk TnaqdiO2+uXEF6BnZcbAq/EEE9TWutPWLdIGYpFX0lJLkqv7PrbS0glxH/BlaXX1nZ ZFVvOrc2u5Xmrd6Ymbe18S8PXIWdQYw4nbNbT2HU= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by sourceware.org (Postfix) with ESMTPS id 2233238515D9 for <gcc-patches@gcc.gnu.org>; Mon, 12 Sep 2022 08:19:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2233238515D9 Received: by mail-wr1-x432.google.com with SMTP id c11so14029295wrp.11 for <gcc-patches@gcc.gnu.org>; Mon, 12 Sep 2022 01:19:34 -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=+w+hQw1IFuVdamYe+rJbRq5/FWg29rg7LpmtPQE4lgA=; b=LsBb5spJ1A6NMee8LH+uAD2eAi4lbjmkzETRpD3FzSJ9fAAEsTibd0B14UQe53/AkF 3FrGF+0nJQoTKyvbM22UYVI7gWpwNnN6Lck3nTsaX9qmxAWBB0oBJ0fX3t4QvrUw8kdg F9V2IWvqUyPoxXIy/x2cTPtG7KyBUq+4FoaAMw5nRwP3duYXL8Afm6RGFUfpnUkSsOgi jv+mIpnPqj1nwWcZivbwgzWceBGdOaPrThRBgaWTJDnrO+k5R9Q0pqtBLhPnXRcGTTXZ hCSMcHwKgIM8SYX9EpRUa7FAbjzFGy684oAT2RNZCCTglOza9k21X9RD/XpvQn0Vdq2m 37PA== X-Gm-Message-State: ACgBeo16jgE2GZYWxz1Kwvo94z8oGdivND+UsnQfLL7Tka1xGiz7ySIu dwtxFfXarPYG0mdfmYA54o6Nha17F/5wEw== X-Received: by 2002:adf:f94b:0:b0:22a:4306:b773 with SMTP id q11-20020adff94b000000b0022a4306b773mr6992013wrr.307.1662970773739; Mon, 12 Sep 2022 01:19:33 -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 h17-20020a05600c2cb100b003a5ca627333sm9541253wmc.8.2022.09.12.01.19.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 01:19:33 -0700 (PDT) Date: Mon, 12 Sep 2022 10:19:32 +0200 To: gcc-patches@gcc.gnu.org Subject: [Ada] Reject use in SPARK of Asm intrinsics for code insertions Message-ID: <20220912081932.GA1512996@poulhies-Precision-5550> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="wac7ysb48OaltWcw" Content-Disposition: inline X-Spam-Status: No, score=-12.8 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: =?utf-8?q?Marc_Poulhi=C3=A8s_via_Gcc-patches?= <gcc-patches@gcc.gnu.org> Reply-To: Marc =?iso-8859-1?q?Poulhi=E8s?= <poulhies@adacore.com> Cc: Yannick Moy <moy@adacore.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1743751780763756869?= X-GMAIL-MSGID: =?utf-8?q?1743751780763756869?= |
Series |
[Ada] Reject use in SPARK of Asm intrinsics for code insertions
|
|
Commit Message
Marc Poulhiès
Sept. 12, 2022, 8:19 a.m. UTC
SPARK does not allow code insertions. This applies also to calls to Asm intrinsics defined in System.Machine_Code. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * libgnat/s-maccod.ads: Mark package as SPARK_Mode Off.
diff --git a/gcc/ada/libgnat/s-maccod.ads b/gcc/ada/libgnat/s-maccod.ads --- a/gcc/ada/libgnat/s-maccod.ads +++ b/gcc/ada/libgnat/s-maccod.ads @@ -33,7 +33,9 @@ -- operations, and also for machine code statements. See GNAT documentation -- for full details. -package System.Machine_Code is +package System.Machine_Code + with SPARK_Mode => Off +is pragma No_Elaboration_Code_All; pragma Pure;