William Maddox wrote:
> Sharing beteen the debug info and the LTO info is a very a good thing, and
> I feel that we should not adopt a solution that breaks that.   I'd really 
> rather
> leave 'strip --strip-debug' broken than bloat up the object files.  The sort 
> of
> solution I would favor would be to make 'strip' smarter so that it preserved
> the part of the debug info that LTO needed.

I think that it would be possible to do that.  In particular, in the
current implementation, none of the debug information for the bodies of
functions (i.e., that describing local variables, line numbers for
statements, etc.) is required for LTO processing.  The LTO use is
confined to global variables, functions, types, etc.  So, that local
information could be stripped (or not generated in the first place)
without adversely affecting usage with LTO.

-- 
Mark Mitchell
CodeSourcery
[EMAIL PROTECTED]
(650) 331-3385 x713

Reply via email to