From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1914) id CB67A398B85A; Tue, 15 Jun 2021 10:22:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CB67A398B85A MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Pierre-Marie de Rodat To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-1475] [Ada] Extend function to retrieve first/last nodes to all declarations X-Act-Checkin: gcc X-Git-Author: Yannick Moy X-Git-Refname: refs/heads/master X-Git-Oldrev: 40f464256cb547f8663f44965d7bb8a68527be6b X-Git-Newrev: 6ae60a649ee76755632adef16decdf90fb8c1ec8 Message-Id: <20210615102248.CB67A398B85A@sourceware.org> Date: Tue, 15 Jun 2021 10:22:48 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jun 2021 10:22:48 -0000 https://gcc.gnu.org/g:6ae60a649ee76755632adef16decdf90fb8c1ec8 commit r12-1475-g6ae60a649ee76755632adef16decdf90fb8c1ec8 Author: Yannick Moy Date: Wed Feb 10 15:23:06 2021 +0100 [Ada] Extend function to retrieve first/last nodes to all declarations gcc/ada/ * errout.adb (First_And_Last_Node): Also apply to arbitrary late declarations, not only subprogram specs. Diff: --- gcc/ada/errout.adb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ada/errout.adb b/gcc/ada/errout.adb index 09092f93d30..42a1099c8f4 100644 --- a/gcc/ada/errout.adb +++ b/gcc/ada/errout.adb @@ -1785,7 +1785,7 @@ package body Errout is | N_Declaration | N_Access_To_Subprogram_Definition | N_Generic_Instantiation - | N_Subprogram_Declaration + | N_Later_Decl_Item | N_Use_Package_Clause | N_Array_Type_Definition | N_Renaming_Declaration