On Wed, Mar 23, 2022 at 12:55 PM Erick Ochoa via Gcc <gcc@gcc.gnu.org> wrote: > > Hi, > > I am trying to understand what path is executed in GCC from parsing a C > expression (in a global variable declaration) to the value in DECL_INITIAL. > At the moment, I have annotated a tree during parsing. I have another > debugging pass that looks for this tree in subsequent passes. The > annotation persists if the tree is inside a function body. However, if the > tree is in a global variable initialization (i.e., DECL_INITIAL), then I am > unable to see the annotation even when placing the debugging pass at the > beginning of passes.def. > > Can someone provide a little bit of guidance?
I'm not sure I understand but no pass walks 'global variables', so you're not going to "see" the annotation from passes (whatever that means). Richard. > > Thanks!