From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 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-x42a.google.com with SMTP id b5so10085444wrr.5 for ; Mon, 05 Sep 2022 00:26:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date; bh=HaFH8QE2NEhClKGaRQ5zdlC/q/N2xpk9gfCSCeWhXBQ=; b=XT/VFf/eAzYsh+cOn8fSxWgNOInaWT9VDLmDy3BlzBisLXlbn33sK24Ojb8y1Av56k o/lrWPPGKPh7YJxwVyVlqW7o9IeaAdT9n5S4HFotM02HNTX2QSDjPC+9MHNficUg6tdN lG6+BZXd+gIomiideGJ7lXeJQjisJp0HzV7Ekt9g0auVm0Yr6KBMRNM5Mr5/vKyE3niZ yVQr/766dJcHml7NAN4RgA6HA6B8sECRugRiNWuzH3E9uCllGtjYyoaf64TJmDpnXHTD FJVJgOQyr6tiHgZR6nBs7PZOXVqzhOigRXxMFgxbIk3UWSa2ivele/bJh+UpUzLsUpEH 8PDQ== 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-Google-Smtp-Source: AA6agR5BtD1HF8hO8l/Ho9EGPHOPR/kYl/5ejXyZ1u6eu8SW3xfcrOlU8GwaOepsNRZwC0Xv7bPHeQ== 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 From: Marc =?iso-8859-1?Q?Poulhi=E8s?= To: gcc-patches@gcc.gnu.org Cc: Piotr Trojanek Subject: [Ada] Remove no longer referenced GNATprove utility routine for itypes Message-ID: <20220905072611.GA1174790@poulhies-Precision-5550> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="5mCyUwZo2JvN/JJP" 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 List-Id: --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. --5mCyUwZo2JvN/JJP Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="patch.diff" 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 --5mCyUwZo2JvN/JJP--