On Mon, Sep 28, 2020 at 12:31:59PM +0200, Mark Wielaard wrote:
Finally I am interested in your proposal to implement a different
way
to reduce the size of DIE trees by eliminating "unused" DIEs. It is
hard to predict what effect that would have without seeing an
implementation (in theory GCC with LTO would not actually generate
debuginfo for unused functions). But I think that can be done separate
from your proposal and combined with other size reduction techniques.
And note that GCC already does implement
-feliminate-unused-debug-{symbols,types} which are enabled by default and
are (at least in my eyes) sometimes too aggressive, so by eliminating even further
DIEs the debug experience might be even worse.
Jakub