From patchwork Mon May 22 08:50:10 2023 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: 97194 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1303761vqo; Mon, 22 May 2023 02:01:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6gonWq5lZ8wHrejd9x6kbcppico6zX8WbfCcf3yOfKrEq2xTwb1jNVpuysSqhxPvzViKZW X-Received: by 2002:a17:907:3d9f:b0:969:ed36:12ab with SMTP id he31-20020a1709073d9f00b00969ed3612abmr9233757ejc.23.1684746087912; Mon, 22 May 2023 02:01:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684746087; cv=none; d=google.com; s=arc-20160816; b=hBrECyQ1vKqMKvHeVpj/HkyMzA7IqTq6U1O/Hoq8zny+L87UQ8mYkKwXtjvdALX7q1 59kFnEFHtwMtbF6549L0pLOlOT4xLWu7FmDw5lfU3AfGGxGGpi4WQXEf4ZoZ1cAR7y2N 8907WjdK+ypbbrZC1ktYvHOvBWa3dXQfxjlaAsT33x7e5EHKUPBl66M6YDESIzgouiQi JGw70m7J+qpPpHWK8qQlPqu0kaR4aweaQE8yuwX9ncfafqNazxaK294NAsYSdLAVmg+M kI6uxPshuXA83dP2ouIwVU4JNkE9QI+0ZvFVUDG4ykkCieTMJKC3fF1EqGTJ3DfMU9h1 SQDw== 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=vaD1nz1/1gAKXo1NM1ld0mDpsBZvYhOZB+LO49F7lUg=; b=OZJsZpwDRdcQMJD7oP4kClbUqqIL9W1hJco/5M1zi2xWXA8DA0oPhJnA319PPGrMog QtoSutfV1ncuzKcW0PolZogyfyrxDOiY5xFHIyDphL5UzL4oXFNmkf702dodkZcYf19k Lid6nD1rzaKXhAFmfYbMwFZGhB+uQz5mxVIHX9uirtraHZ2G8CnAq/v7OF4/nlIIi3Ng 7KtuCV7DRkrVn41GkY6kIWQhaKBkksWO2DN7yTLQAuTq76kkwcaVvPctfxMS7CFfvuJf j0xBg0hFrA8nWiUYqKLw3GFVbgxtuMkrEqYemQ/RgRwOGruwwKA4FyU4fo9nbZ2rPm5o cg4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=YTFXX4wd; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id fu32-20020a170907b02000b0094f4a767be1si3409107ejc.5.2023.05.22.02.01.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 02:01:27 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=YTFXX4wd; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 71DC8395445E for ; Mon, 22 May 2023 08:55:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 71DC8395445E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684745701; bh=vaD1nz1/1gAKXo1NM1ld0mDpsBZvYhOZB+LO49F7lUg=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=YTFXX4wde58ri7WzA4Nd6WYi/gx9UjHkb3DNoyrzmjDPZ6WckSZDqkSQOTa6S4iKn rRSeARh9xERVZ9siOHqlGsNcPH24dTthipvoJ1Nynf4lMzSep79BxL9LX6NcjmWsQH 7dchoa+vh+EPvEbXRGf84mIatblLehtEUSyPIhc0= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by sourceware.org (Postfix) with ESMTPS id 7DDF8388205A for ; Mon, 22 May 2023 08:50:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7DDF8388205A Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f601c57d8dso8831575e9.0 for ; Mon, 22 May 2023 01:50:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684745412; x=1687337412; 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=vaD1nz1/1gAKXo1NM1ld0mDpsBZvYhOZB+LO49F7lUg=; b=YVsxugkcVRc8mWw0FBBEh8uxb6oJNY4ngrtb/kt2FBMddcsQKN/wzlyl1D/T1gpDiB cyF5YnmMVB7FlgReCg0ZchEcx9cgTvlzzwA0bd8PUGOY6F16RgwJIj6bfV1B3Tl1nF/0 onf3h4oeJDTXxezP7C2k9rcSmVJEo34T8R0srWfDOaSqtzUN3DS6RS4p2Vx15RWVA17f iuRtKw8pNLBdoLam7kKOBFGG8M5C9j8lcJDcnaGzSwqI4l71ceaM8CBEJApbsruf7nm+ gWoE3/EonB++Y2TIHTSIinn7lLJ8BG/ksUPNoRSvp7symyB22jg5D3GofjjPwZwT3crd zz3w== X-Gm-Message-State: AC+VfDyq4f8lLq5UG5LbCt7gyTGUKDK4k3bW0nSSed2YxnFa163FvP2w l9iFNlQFtsG0CH3J2jvZuskM3VSWANLEbsLPDtmD9g== X-Received: by 2002:a05:600c:3582:b0:3f5:867:1aba with SMTP id p2-20020a05600c358200b003f508671abamr6737418wmq.15.1684745412193; Mon, 22 May 2023 01:50:12 -0700 (PDT) Received: from poulhies-Precision-5550.telnowedge.local (lmontsouris-659-1-24-67.w81-250.abo.wanadoo.fr. [81.250.175.67]) by smtp.gmail.com with ESMTPSA id v15-20020a5d4b0f000000b003047ae72b14sm6968274wrq.82.2023.05.22.01.50.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 01:50:11 -0700 (PDT) To: gcc-patches@gcc.gnu.org Cc: Piotr Trojanek Subject: [COMMITTED] ada: Remove unreferenced utility routine Is_Actual_Tagged_Parameter Date: Mon, 22 May 2023 10:50:10 +0200 Message-Id: <20230522085010.1726096-1-poulhies@adacore.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-Spam-Status: No, score=-13.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_ASCII_DIVIDERS, 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: =?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?1766584313725744106?= X-GMAIL-MSGID: =?utf-8?q?1766584313725744106?= From: Piotr Trojanek Routine Is_Actual_Tagged_Parameter was added to detect unsupported SPARK 2005 constructs, but this feature was deconstructed in favor of SPARK 2014 and its SPARK_Mode aspects. gcc/ada/ * sem_util.ads (Is_Actual_Tagged_Parameter): Remove spec. * sem_util.adb (Is_Actual_Tagged_Parameter): Remove body. Tested on x86_64-pc-linux-gnu, committed on master. --- gcc/ada/sem_util.adb | 12 ------------ gcc/ada/sem_util.ads | 4 ---- 2 files changed, 16 deletions(-) diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb index cb0cbf2cf3a..ef591c935eb 100644 --- a/gcc/ada/sem_util.adb +++ b/gcc/ada/sem_util.adb @@ -15235,18 +15235,6 @@ package body Sem_Util is end case; end Is_Actual_Parameter; - -------------------------------- - -- Is_Actual_Tagged_Parameter -- - -------------------------------- - - function Is_Actual_Tagged_Parameter (N : Node_Id) return Boolean is - Formal : Entity_Id; - Call : Node_Id; - begin - Find_Actual (N, Formal, Call); - return Present (Formal) and then Is_Tagged_Type (Etype (Formal)); - end Is_Actual_Tagged_Parameter; - --------------------- -- Is_Aliased_View -- --------------------- diff --git a/gcc/ada/sem_util.ads b/gcc/ada/sem_util.ads index 060d04241d3..7bb8cdbe3f3 100644 --- a/gcc/ada/sem_util.ads +++ b/gcc/ada/sem_util.ads @@ -1759,10 +1759,6 @@ package Sem_Util is function Is_Actual_Parameter (N : Node_Id) return Boolean; -- Determines if N is an actual parameter in a subprogram or entry call - function Is_Actual_Tagged_Parameter (N : Node_Id) return Boolean; - -- Determines if N is an actual parameter of a formal of tagged type in a - -- subprogram call. - function Is_Aliased_View (Obj : Node_Id) return Boolean; -- Determine if Obj is an aliased view, i.e. the name of an object to which -- 'Access or 'Unchecked_Access can apply. Note that this routine uses the