public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Question on path from C parser to DECL_INITIAL
@ 2022-03-23 11:53 Erick Ochoa
  2022-03-23 12:23 ` Richard Biener
  2022-03-23 12:46 ` Martin Jambor
  0 siblings, 2 replies; 4+ messages in thread
From: Erick Ochoa @ 2022-03-23 11:53 UTC (permalink / raw)
  To: 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 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?

Thanks!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-03-23 12:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-23 11:53 Question on path from C parser to DECL_INITIAL Erick Ochoa
2022-03-23 12:23 ` Richard Biener
2022-03-23 12:31   ` Erick Ochoa
2022-03-23 12:46 ` Martin Jambor

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).