public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1475] [Ada] Extend function to retrieve first/last nodes to all declarations
@ 2021-06-15 10:22 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-06-15 10:22 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:6ae60a649ee76755632adef16decdf90fb8c1ec8
commit r12-1475-g6ae60a649ee76755632adef16decdf90fb8c1ec8
Author: Yannick Moy <moy@adacore.com>
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-15 10:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-15 10:22 [gcc r12-1475] [Ada] Extend function to retrieve first/last nodes to all declarations Pierre-Marie de Rodat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).