about souce code location
Richard Biener
richard.guenther@gmail.com
Fri Sep 4 07:08:16 GMT 2020
On Fri, Sep 4, 2020 at 2:23 AM 易会战 via Gcc <gcc@gcc.gnu.org> wrote:
>
> 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?
Not all statements have a location, if you encounter such you need to
look at the "surrounding context"
to find one.
More information about the Gcc
mailing list