Re: Question on path from C parser to DECL_INITIAL

2022-03-23 Thread Martin Jambor
Hi, On Wed, Mar 23 2022, Erick Ochoa via Gcc 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 pa

Re: Question on path from C parser to DECL_INITIAL

2022-03-23 Thread Erick Ochoa via Gcc
> 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). > > What I mean by walking global variables is that I have a GIMPLE_PASS that ignores the function sent as an argument and instead just uses a FOR_EAC

Re: Question on path from C parser to DECL_INITIAL

2022-03-23 Thread Richard Biener via Gcc
On Wed, Mar 23, 2022 at 12:55 PM Erick Ochoa via Gcc 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 > de

Question on path from C parser to DECL_INITIAL

2022-03-23 Thread Erick Ochoa via Gcc
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