This is the mail archive of the gcc-patches@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: Reduce Dwarf Debug Size


Daniel Berlin wrote:

> People have been talking about doing duplicate DWARF2 elimination
> in ld for 5+years now, and it hasn't gotten done.  It's just very hard
> to do in the current linker

I do not believe this is a incredibly hard project.  It's a tweener:
it's not a weekend's work, but it's not TREE-SSA (or even LTO) either.
We've looked at it, and I would estimate 1-4 person-months, depending on
who works on it, how far you take it, how many platforms you enable it
for, and how buggy your first-cut code tends to be. :-)

I think it's inarguable that this approach would be useful to many.  I'm
not saying it's a panacea, better than Lawrence's patch, etc.; I'm just
saying it would be useful, and that it's doable.

> In the meantime, I agree with Ian that we should consider this one, as
> I don't see the harm.

I've previously agreed with this statement, and I still do. :-)  I did
make some implementation suggestions, but, in principle, I think this
kind of functionality is worth considering.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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