https://gcc.gnu.org/g:2176e769d3f0c77405af0cd33bad64c3488980f0

commit r17-869-g2176e769d3f0c77405af0cd33bad64c3488980f0
Author: Bob Duff <[email protected]>
Date:   Tue Feb 24 10:13:59 2026 -0500

    ada: VAST: Explain 2-pass algorithm
    
    Minor: Add a comment.
    
    gcc/ada/ChangeLog:
    
            * vast.adb (Pass): Add a comment.

Diff:
---
 gcc/ada/vast.adb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/ada/vast.adb b/gcc/ada/vast.adb
index cd6257ab60ce..4a26ddb5b846 100644
--- a/gcc/ada/vast.adb
+++ b/gcc/ada/vast.adb
@@ -145,6 +145,8 @@ package body VAST is
 
    type Pass_Number is range 1 .. 2;
    Pass : Pass_Number;
+   --  We walk the tree twice (with Pass = 1, then Pass = 2), so that we can
+   --  compute information in Pass 1, and then check it in Pass 2.
 
    procedure VAST;
    --  Called by VAST_If_Enabled to do all the checking

Reply via email to