From patchwork Tue Sep 6 07:15:52 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: 1019 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5044:0:0:0:0:0 with SMTP id h4csp505360wrt; Tue, 6 Sep 2022 00:23:35 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Z4BaD4frv0dxwURmv8sIOWdRxNzDcjDzezeJStyQPxOevok0z3sgbA9yoYFXPdcJcdwH+ X-Received: by 2002:a05:6402:2d6:b0:447:ae9d:d0f1 with SMTP id b22-20020a05640202d600b00447ae9dd0f1mr46588235edx.256.1662449014894; Tue, 06 Sep 2022 00:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662449014; cv=none; d=google.com; s=arc-20160816; b=To/rbo16CcQ0UeBRZt/CIrEPKFDSI+6e4MPmFYYVALdj9XUS10WSyDlkxxYE7CoSwQ bEWYhejglsDWu25nRuqqc/JMYXbWYRnDW2kRvz1Iv00vOlQmQNa5uGqXzFX4nIfa0j+S xb+lHQIwtFZJ0kQFFCanUTxy2gEDClUTbWuu2Way4Z6Vl9h9XhoHG9W3WCdFAxmTaMPJ vWae8Z15LGNSo7UMM51q4LxEtEvt64vJ1fhrYiwoqbQbbfDGpcuYCVLLcga2aGndgipR kpULc+7p6oHc15+8M8fc9zMwHqcnU2+a/gKrWxEnuJKEtzqPAXgZai6mVZKGiBU1NYlP +iVw== 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=N5guLuxyjfxD27RyqTXAJ7ERWrgvuJg0CC81PV5K8Ok=; b=D8wvP4aEmQy4liQDRbkHeMLgtM/1Rd0Q1+/cpGzD49JGT1wxEovrJqGNxO35bLyEk8 La6Z31Ulzj6c+etlkbJHZZ+eVmJXXt0mId9yoFucBIe71lU/pvZdYvMI8LzEiMV5j4TR cWa59rmNKDXiHEI8+7xV+1I1Z0pYaFTSuYXTKvpndAw8dNkiztCAoBip8mqAevlnn1Sf JYUkJUljSrDrPh64yvSZTVI2+V00EJ4OpiSfE47hrJGKRXj29i5A/HX8YplGqTwZq1qn MdlYL60/z2oPEMDdqcFKZIBQcus+z920HNW4jEv61UCCvfHMY3cilLJG4Q5g9CUyYKRg utuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="CTMC/GKN"; 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 n5-20020a509345000000b0044811f7cfa6si9274351eda.486.2022.09.06.00.23.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 00:23:34 -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="CTMC/GKN"; 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 3BBF43949085 for ; Tue, 6 Sep 2022 07:19:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3BBF43949085 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662448770; bh=N5guLuxyjfxD27RyqTXAJ7ERWrgvuJg0CC81PV5K8Ok=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=CTMC/GKNlAPE/npR+4hATHQF/zDzUGV4uEvcwkTL1hhocS0xzBQWtfsh+GH22Myow 7uYz9Iw+uB6v9DZxKQsJdI4etPD95HH8mOXGVgQtHZLQk/0bnmX+OkWqTNmwzr+L+7 FMD5AtVWDV+v3tp+Cy5BGssJFXAXAh/6pKXYxK98= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id E08C4385087E for ; Tue, 6 Sep 2022 07:15:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E08C4385087E Received: by mail-wr1-x433.google.com with SMTP id bp20so13538048wrb.9 for ; Tue, 06 Sep 2022 00:15:54 -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=N5guLuxyjfxD27RyqTXAJ7ERWrgvuJg0CC81PV5K8Ok=; b=ptC18RvIrWqwnkhZx3lon2BshquYB1HneRWbTbP8PpW8dhwFo9EiOr9ZHlcM0ldbky gO+NpQPmceIDsaV99YXaGUF3jFDlL01omnF8nocQGh0VVJUnHd5WgLuflwHqf77WvmfW Pv5VqV0zIWVDhbOlPCSmSlhTFDxGGzW7+nqPLxRK5bX3Junq56ssk46V6L/5T9uThi1B 87sTcIrrRm36Njlvbb1mLvJAH/dn9OoIXFiehxVPP/M6vxXpzpYwXv16OdU8FUG8/slK 43vRcMKWMWOlwVMdpjoKRgJ/1ahLbPXpqOYGaYApKojeUmoXnympn4+xbHPMzgiDQfyh cDQA== X-Gm-Message-State: ACgBeo1yF6ynHd6T9IHxufRSODEzvyyX6S2305R7PR+5YKxZ61gw3Q2W TW4Xe4f4DVpBHqgEfO0+7ZaRc1gwjvzeJA== X-Received: by 2002:a05:6000:178e:b0:220:635f:eb13 with SMTP id e14-20020a056000178e00b00220635feb13mr26507461wrg.634.1662448553731; Tue, 06 Sep 2022 00:15:53 -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 j17-20020a05600c411100b003a6896feef7sm12985787wmi.39.2022.09.06.00.15.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 00:15:53 -0700 (PDT) Date: Tue, 6 Sep 2022 09:15:52 +0200 To: gcc-patches@gcc.gnu.org Subject: [Ada] Fix comment about mapping of parameters and inlining static funcs Message-ID: <20220906071552.GA1280391@poulhies-Precision-5550> MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-12.9 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?1743204138241839380?= X-GMAIL-MSGID: =?utf-8?q?1743204138241839380?= Fix glitch in a cross-reference in comment. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * inline.adb (Replace_Formal): Fix name of the referenced routine. diff --git a/gcc/ada/inline.adb b/gcc/ada/inline.adb --- a/gcc/ada/inline.adb +++ b/gcc/ada/inline.adb @@ -4699,8 +4699,9 @@ package body Inline is procedure Inline_Static_Function_Call (N : Node_Id; Subp : Entity_Id) is function Replace_Formal (N : Node_Id) return Traverse_Result; - -- Replace each occurrence of a formal with the corresponding actual, - -- using the mapping created by Establish_Mapping_For_Inlined_Call. + -- Replace each occurrence of a formal with the + -- corresponding actual, using the mapping created + -- by Establish_Actual_Mapping_For_Inlined_Call. function Reset_Sloc (Nod : Node_Id) return Traverse_Result; -- Reset the Sloc of a node to that of the call itself, so that errors