From patchwork Mon Sep 5 07:26:11 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: 984 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5044:0:0:0:0:0 with SMTP id h4csp59424wrt; Mon, 5 Sep 2022 00:39:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR7O5PWDBCInvRAtY/raQr4lxr6+L/LsAMzl0CCpg5x1H/eMKWxivtDiyhKpeklVS6Q7UVXG X-Received: by 2002:a17:907:7242:b0:741:7cd6:57d5 with SMTP id ds2-20020a170907724200b007417cd657d5mr25025818ejc.419.1662363555560; Mon, 05 Sep 2022 00:39:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662363555; cv=none; d=google.com; s=arc-20160816; b=NRo2vSeGunZOoluum5iGyxxNszbw+bgqgpybmOrcx5CdVD8C24+bqHZSHQVNAS+TJP tMlZi9UP4K0bFIWZOanpwA9IM2eRWHDX+3/SU/IIewk/hMYXjEldYO4FHJIFsFfBsfiO aD8tj99/K2FvrWlOlVOYxbODY0GJRXlhLCleqsTFeac0j23WrFPP8gXRXhdBTJPHFhQ/ RdgGHSnUAT9Arbs6YHp0ZgA8HKsc01HzME2PTDcUCbrgCQohvoDnKg7+W2Dz582n94rb TLNPU4pBqVwBebztYKKIq4fa2PKIojIs9Jdo6J47rce0jrRPS+fwTAAVzV1u4LRLxL76 ZyKg== 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=HaFH8QE2NEhClKGaRQ5zdlC/q/N2xpk9gfCSCeWhXBQ=; b=HGg84ao1kndNju3BauRS3eXrOCXt248vp+rqdUJ8sqsva/qEKx6i2Sp8Okxc0V2G1M jroeib2jo0WxMIhBX4Gv5Sl5wDr3ONz6MrOcrYgKbFUKKxijrD6EoY+jkFRni56KAeYh ofvHsc9w9YT8EOPGVSD7im2tK/0xxmZQnQMGhnI1/bCvoVDAgsb6B2v2PWjVtUFYbSCa b9sUypwQPkQNwKYEmrOWAWK0Lh3a2bLhNWvfkU0NI1greIY9bVJfLdLSVJ4ulpn1MpXD JsJcpkVopezq/CtOqByz1KXRpxbyocaqLXxe29IIkByP0pthc1reangejrlEJm5byO41 hDbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=q+mVjDHb; 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 hp5-20020a1709073e0500b0073da90f1996si8368020ejc.683.2022.09.05.00.39.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 00:39:15 -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=q+mVjDHb; 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 D5AD538348AE for ; Mon, 5 Sep 2022 07:32:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D5AD538348AE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662363165; bh=HaFH8QE2NEhClKGaRQ5zdlC/q/N2xpk9gfCSCeWhXBQ=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=q+mVjDHbqQiUmx67nalTU3AIi4YbaAm+CEnr3NQuj5RigosFNn5vq7iVoIGasP3vi LhQpktn1LRQMHSwlrZg9i23jKVxFEbUwBR6FVTilejfyAiFBuB0QsQ3K49XlIzFUaz uSVT0y9C7pSZlaA7hdPRMKqZfTs3mnw84mp0OjPs= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by sourceware.org (Postfix) with ESMTPS id 961443854152 for ; Mon, 5 Sep 2022 07:26:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 961443854152 Received: by mail-wr1-x42a.google.com with SMTP id b5so10085444wrr.5 for ; Mon, 05 Sep 2022 00:26:13 -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=HaFH8QE2NEhClKGaRQ5zdlC/q/N2xpk9gfCSCeWhXBQ=; b=xcMIANFjINvQuGah7IXSh5Bqv43qOXVgTHsxXpsOyjMFXldwLbua5vk7pvcWNv9szh G8Z9FPePPkHkuoqsyi8hjRyB7SjukisKmHWiU2QQ13RQqF75MzciGXXnAQJ3NfjG3neI s2ixrZn65qm4X1xu0ETyc/rNM7Bl/596bdbjyssroyjv+ozzZVlbQTesZ3248rlSfDXs DemzHS1NcGOF5+D+g5XwTWtAeOIzWOMQzYYGsPJnkB4G0TqukiIe+0qLe47I9uOZpB6b FJifpTjxFIR0kp5BSe4NQZ2fKgjxgHOlz7Ls7YEpe/toiDJ6X1fvam4vATITIwZ7YBVW DZug== X-Gm-Message-State: ACgBeo2jOK9nYFMRtNJUN4glorRrZecCWUWU5BzR8IBLLpHh6IAFP5Yy vsu9oFOj3Rp+Aa8SIilOWS/AVBDAFXgwIQ== X-Received: by 2002:a05:6000:1842:b0:226:fc0f:543b with SMTP id c2-20020a056000184200b00226fc0f543bmr9472308wri.209.1662362772480; Mon, 05 Sep 2022 00:26:12 -0700 (PDT) Received: from poulhies-Precision-5550 (static-176-191-105-132.ftth.abo.bbox.fr. [176.191.105.132]) by smtp.gmail.com with ESMTPSA id p7-20020a05600c358700b003a8418ee646sm17941800wmq.12.2022.09.05.00.26.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 00:26:12 -0700 (PDT) Date: Mon, 5 Sep 2022 09:26:11 +0200 To: gcc-patches@gcc.gnu.org Subject: [Ada] Remove no longer referenced GNATprove utility routine for itypes Message-ID: <20220905072611.GA1174790@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, 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: Marc =?iso-8859-1?q?Poulhi=E8s?= Cc: Piotr Trojanek 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?1743114527589218656?= X-GMAIL-MSGID: =?utf-8?q?1743114527589218656?= Code cleanup related to itypes for Ada 2022 null array aggregates. Remove routine that was added in 2011 but is not referenced by GNATprove since 2015. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * sem_util.ads (Itype_Has_Declaration): Remove spec. * sem_util.adb (Itype_Has_Declaration): Remove body. diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb --- a/gcc/ada/sem_util.adb +++ b/gcc/ada/sem_util.adb @@ -22167,19 +22167,6 @@ package body Sem_Util is pragma Assert (No (Actual)); end Iterate_Call_Parameters; - --------------------------- - -- Itype_Has_Declaration -- - --------------------------- - - function Itype_Has_Declaration (Id : Entity_Id) return Boolean is - begin - pragma Assert (Is_Itype (Id)); - return Present (Parent (Id)) - and then Nkind (Parent (Id)) in - N_Full_Type_Declaration | N_Subtype_Declaration - and then Defining_Entity (Parent (Id)) = Id; - end Itype_Has_Declaration; - ------------------------- -- Kill_Current_Values -- ------------------------- diff --git a/gcc/ada/sem_util.ads b/gcc/ada/sem_util.ads --- a/gcc/ada/sem_util.ads +++ b/gcc/ada/sem_util.ads @@ -2561,11 +2561,6 @@ package Sem_Util is -- Calls Handle_Parameter for each pair of formal and actual parameters of -- a function, procedure, or entry call. - function Itype_Has_Declaration (Id : Entity_Id) return Boolean; - -- Applies to Itypes. True if the Itype is attached to a declaration for - -- the type through its Parent field, which may or not be present in the - -- tree. - procedure Kill_Current_Values (Last_Assignment_Only : Boolean := False); -- This procedure is called to clear all constant indications from all -- entities in the current scope and in any parent scopes if the current