From: Erick Ochoa <eochoa@gcc.gnu.org>
To: gcc@gcc.gnu.org
Subject: Question on path from C parser to DECL_INITIAL
Date: Wed, 23 Mar 2022 12:53:55 +0100 [thread overview]
Message-ID: <CAJ_nqziLv-GwDWR+ME+py4_Ac-t=Sqb=LKGdXTx3m=Z3_azJpg@mail.gmail.com> (raw)
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!
next reply other threads:[~2022-03-23 11:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-23 11:53 Erick Ochoa [this message]
2022-03-23 12:23 ` Richard Biener
2022-03-23 12:31 ` Erick Ochoa
2022-03-23 12:46 ` Martin Jambor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJ_nqziLv-GwDWR+ME+py4_Ac-t=Sqb=LKGdXTx3m=Z3_azJpg@mail.gmail.com' \
--to=eochoa@gcc.gnu.org \
--cc=gcc@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).