debugging info considered harmful to lto.
Daniel Jacobowitz
dan@debian.org
Mon Jul 23 17:50:00 GMT 2007
On Mon, Jul 23, 2007 at 07:33:46PM +0200, Jan Hubicka wrote:
> The particular problem here is that the abstract origin pointers points
> to the blocks within functions they was constructed from. These are used
> by dwarf2out to output abstract copy of the function and then use it
> as a destination of origin pointers from every copy of the function.
> (I am not sure what the block origins are neede for by GDB, explanation
> would be welcome)
It's mostly supposed to be a space optimization. We get e.g. the
names and (sometimes) types of local variables from the origin copy,
and only need a location at each inlining site. I'm sure there are
other things we could do with this information, that rely on knowing
what variables are the same from the user's point of view.
--
Daniel Jacobowitz
CodeSourcery
More information about the Gcc
mailing list