https://gcc.gnu.org/g:264a131335fb4c93820189706b6d4f8ab8e07439

commit r17-1178-g264a131335fb4c93820189706b6d4f8ab8e07439
Author: Ronan Desplanques <[email protected]>
Date:   Tue Apr 7 14:03:00 2026 +0200

    ada: Add note about Sem_Aux being in binder closure
    
    I recently realized that Sem_Aux is in the binder's closure, unlike
    Sem_Util. This patch makes it explicit in a comment since it can be
    useful when choosing where to put a helper subprogram.
    
    gcc/ada/ChangeLog:
    
            * sem_aux.ads: Add note.

Diff:
---
 gcc/ada/sem_aux.ads | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gcc/ada/sem_aux.ads b/gcc/ada/sem_aux.ads
index cf80ec793ba5..3bd3a4664760 100644
--- a/gcc/ada/sem_aux.ads
+++ b/gcc/ada/sem_aux.ads
@@ -30,6 +30,11 @@
 --  content of entities in the tree, so this package is used for routines that
 --  require more than minimal semantic knowledge.
 
+--  However, this package is in the closure of the binder executable. If you're
+--  looking for the home of a new helper function that uses significant
+--  semantic knowledge, Sem_Util, which is not in the closure of the binder
+--  executable, will be a more convenient place.
+
 with Alloc;
 with Einfo.Entities; use Einfo.Entities;
 with Namet; use Namet;

Reply via email to