> Yes, that's very likely. If we'd get around to re-do the LTO option saving > code > we might want to forbid -g0 compile and -g link (dropping -g at link > time as soon > as we see a single module compiled with -g0). Then we can free some more > stuff, at least with -g0 - though I'm not sure -g0 matters in practice.
I would a lot preffer if dwaf2out was able to do the right thing here: output debug info for things that came with debug info in (i.e. was originally compiled with -g) and not for thing that did not. Traditionally it was not neccesary to set -g or -g0 at linktime and we should just get to the same behaviour, perhaps with option to overwrite to -g0 explicitely. Honza