This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Live range information


Vijayaraghavan Murali <vijayaraghavan2k5@gmail.com> writes:

> I'm wondering if there is a way to make gcc dump variables' live range
> information (using DWARF or otherwise). To be precise what I'm looking for
> is something like: 'a' is live from line 3 to 10, 'b' is live from line 4 to
> 8, etc in some specified format. Is this possible in gcc?

There is nothing so simple, no.  You could take a look at
-fdump-rtl-vartrack-details.  That file will only be generated if you
compile with -g -fvar-tracking.

The information is there if you modify the source code.  The file
gcc/var-tracking.c would be a good place to start.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]