From patchwork Mon Sep 5 07:26:14 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: 986 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5044:0:0:0:0:0 with SMTP id h4csp59720wrt; Mon, 5 Sep 2022 00:40:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR57nxoJG3bdRuyt3R2B2vtRtM5EjOPupumB62eU/sA+yYyDoBUkNepAuM2z51Giz6UrcMGz X-Received: by 2002:a50:ed0d:0:b0:44e:8882:fc4a with SMTP id j13-20020a50ed0d000000b0044e8882fc4amr2768017eds.190.1662363631145; Mon, 05 Sep 2022 00:40:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662363631; cv=none; d=google.com; s=arc-20160816; b=OLCboK/vYhn4j62hB3m+5bNfVTHVi3Zb+lAQJg/y/8jzD4E7sYVN+UGwXvonxSPtJH ZpfZDVqKmFZ/1ae8CtbYBCw+6LACSH/pv/WXAFLF/vaFOYP3GY0jfOvK55dwzdawclHM EmmAdxfvs/1ATdOlpbMu+i7O3dzhbvCNpuVg1O+JI3yieEa30nau2bLS3afI7wdZkrsh HuXn8vI54MXq7dpk9zsiWEw8DCNqAaRyiIE4DLV6oHg3lrcNoPd3cHmJ2vcWweqS0NBO qMQSA2IeF5jIAywWnk5TsqCkap9hrBqfZ0VcAYp06E5OSeGY99Rji/BXA8au6VN5DGs1 SgDQ== 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=pdZwyAje7aglRehjMxSggIfH3HYwjxiStx6Tp2y5Rng=; b=rTMW6nu9ZEEQ4DBx+HcdvoN5154+HxjeeBSyeS/iqNRRFq5VFq3qEPmbSk2O0z8Ysa Nw+QqnBiqO2ajMO7xow3z3gBvHZBHlzgsha8qXToKkYb65dfYMGQLRHhirCGMhBWgYKg 3FffzOritAH+CDKtY5Fosi6luokki2vNA/q4ose4CQzKDDm6UtHXsTIP3cR5hRyphptL bIXVtDIv4xjO8jGGiZKHrgxrD9vZFm/r7W5n1L7NXUXRvqO5N75dDsWVlbBFYmEQ6o9X 9JZ8Cn0WNG8n8m0N5/cGYhLlsHQPbvTdlMQ6r8a5lsfss51viSZDh49U9ASNqt2iyx5S 8Qgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=puOfrKMq; 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 gv18-20020a1709072bd200b0072af35fca64si5770135ejc.484.2022.09.05.00.40.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 00:40:31 -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=puOfrKMq; 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 C345738365A3 for ; Mon, 5 Sep 2022 07:34:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C345738365A3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662363281; bh=pdZwyAje7aglRehjMxSggIfH3HYwjxiStx6Tp2y5Rng=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=puOfrKMqphbtouPONncxBzAfGEDTqm0dAZhiXlaJo8dRTg1S9d1kojQ3q1XMwgqsX Lx9i5Fm+rgvoPeinaLVye3QMq8XPkXAIOYe/utRIQ3VfGvB9UZePF/si+Ev892ycNY F31wKc0r9TI7HnnBIV5FPE4o2lMUYhRzMy2hLuag= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by sourceware.org (Postfix) with ESMTPS id CAF753857B8D for ; Mon, 5 Sep 2022 07:26:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CAF753857B8D Received: by mail-wr1-x430.google.com with SMTP id e13so10101334wrm.1 for ; Mon, 05 Sep 2022 00:26:15 -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=pdZwyAje7aglRehjMxSggIfH3HYwjxiStx6Tp2y5Rng=; b=PPJpov8OTCF8oYycfTVrRZjmMz4hrSvfSxSOX3C7jj1kcmx3P8STrYPioeShOYpX9G o2s0bSvC6DwXQOIFwheeFF+kjI+dWJRj6OOz9TClIp0lyL+7l8jlkVVNBLrHrDlcRDUH UfO9hChERmlhuyG5gYA/hkcrAdMapdKOjPfQtyW3laAZv+99C2SD0zqMQXD47EaHleg0 me/vpeJ+Neg2OflTZ8cJFVDayMIA1NbMEC1snh5rojkSZf97k/jzBQ6RkAshDLyWHQUJ rbyzG83/Mdn4VxWV9tSF+jlsOr3CCnpzE+jSxCFSSIItvZTWVO5g/FH/gzQopJTIbCxx topQ== X-Gm-Message-State: ACgBeo0eYUpH8pHJxxy+NI20tzqkP/EN0QgB1XV0HuhdEXpav5X5Hk4x maZnorMnMJ1yeDuRqI82ONvUAJTAIpShlA== X-Received: by 2002:adf:fc91:0:b0:228:afa5:2432 with SMTP id g17-20020adffc91000000b00228afa52432mr802616wrr.255.1662362775517; Mon, 05 Sep 2022 00:26:15 -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 i11-20020a5d522b000000b00226d473ebd6sm7954284wra.86.2022.09.05.00.26.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 00:26:15 -0700 (PDT) Date: Mon, 5 Sep 2022 09:26:14 +0200 To: gcc-patches@gcc.gnu.org Subject: [Ada] Remove VMS specific routine that is no longer referenced Message-ID: <20220905072614.GA1174837@poulhies-Precision-5550> MIME-Version: 1.0 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 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?1743114607370680048?= X-GMAIL-MSGID: =?utf-8?q?1743114607370680048?= Code cleanup related to resctrition No_Local_Allocators. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * exp_util.ads (Entry_Names_OK): Remove spec. * exp_util.adb (Entry_Names_OK): Remove body. diff --git a/gcc/ada/exp_util.adb b/gcc/ada/exp_util.adb --- a/gcc/ada/exp_util.adb +++ b/gcc/ada/exp_util.adb @@ -5187,19 +5187,6 @@ package body Exp_Util is end if; end Ensure_Defined; - -------------------- - -- Entry_Names_OK -- - -------------------- - - function Entry_Names_OK return Boolean is - begin - return - not Restricted_Profile - and then not Global_Discard_Names - and then not Restriction_Active (No_Implicit_Heap_Allocations) - and then not Restriction_Active (No_Local_Allocators); - end Entry_Names_OK; - ------------------- -- Evaluate_Name -- ------------------- diff --git a/gcc/ada/exp_util.ads b/gcc/ada/exp_util.ads --- a/gcc/ada/exp_util.ads +++ b/gcc/ada/exp_util.ads @@ -509,11 +509,6 @@ package Exp_Util is -- used to ensure that an Itype is properly defined outside a conditional -- construct when it is referenced in more than one branch. - function Entry_Names_OK return Boolean; - -- Determine whether it is appropriate to dynamically allocate strings - -- which represent entry [family member] names. These strings are created - -- by the compiler and used by GDB. - procedure Evaluate_Name (Nam : Node_Id); -- Remove all side effects from a name which appears as part of an object -- renaming declaration. Similarly to Force_Evaluation, it removes the