From: 易会战 <huizhanyi@foxmail.com>
To: gcc <gcc@gcc.gnu.org>
Subject: about souce code location
Date: Fri, 4 Sep 2020 08:21:41 +0800 [thread overview]
Message-ID: <tencent_CBCA25562EFCB77CD17D83BBB579AE927707@qq.com> (raw)
I am working a instrumention tool, and need get the location info for a gimple statement. I use the location structure to get the info, and it can work when i use -O1. When I use -O2, sometimes the info seems to be lost and I get line num is zero. anyone can tell me how to get the info?
next reply other threads:[~2020-09-04 0:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-04 0:21 易会战 [this message]
2020-09-04 7:08 ` Richard Biener
2020-09-04 12:26 ` 易会战
2020-09-06 23:31 ` Martin Sebor
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=tencent_CBCA25562EFCB77CD17D83BBB579AE927707@qq.com \
--to=huizhanyi@foxmail.com \
--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).