From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 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-x433.google.com with SMTP id bp20so13538048wrb.9 for ; Tue, 06 Sep 2022 00:15:54 -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=N5guLuxyjfxD27RyqTXAJ7ERWrgvuJg0CC81PV5K8Ok=; b=BY/KamYypwm35+A2nVJOl74NU13BFOQzMmazXm70hmnZeIujm6Qf2ynnJ8Z9IZ589B qXSIQkzAhc2Na9pITGRbf3F7lhsKUNJhuloA1W8UDRJn89BgD+0Hxlt8viPwzIzRfZQj Oz0FHGEl0KAbEQf5wqTCBfyTXdFhAHMDuOqGtiZkwfUlDAypUEbKjwYz8k+X7xt7Hyxe J3A0f5Ng9rBNnOxvQCdiHzoHMN+VEYvzIogOb6Mr8z8uYRARYOk8k8OlFLoEKBtv+Ljq f9whvlfvsKF0XX9G1bCmRCls/6EqmqAHZcMqxp6M7Z85cb8a+deAvStMk1+8oAExWqXk nN/g== 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-Google-Smtp-Source: AA6agR7UPTVTSZO+KHQy6MJrh6QfxF8d9EKKdBSlpuMBeaF0LN0QUUV4pbk5pDXmzPbFvy3UPGFzdQ== 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 From: Marc =?iso-8859-1?Q?Poulhi=E8s?= To: gcc-patches@gcc.gnu.org Cc: Piotr Trojanek Subject: [Ada] Fix comment about mapping of parameters and inlining static funcs Message-ID: <20220906071552.GA1280391@poulhies-Precision-5550> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="y0ulUmNC+osPPQO6" 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 List-Id: --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. --y0ulUmNC+osPPQO6 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="patch.diff" 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 --y0ulUmNC+osPPQO6--