[Bug debug/33429] debug info for class2 in g++.dg/other/unused1.C requires -femit-class-debug-always
mmitchel at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Oct 15 20:22:00 GMT 2008
------- Comment #7 from mmitchel at gcc dot gnu dot org 2008-10-15 20:20 -------
The comment in the test says:
/* Make sure we didn't eliminate casted types because we thought they were
unused. */
If we don't want to do that any more, I think we can just remove this test,
rather than passing it special options.
But, I think it's odd if I'm in the debugger, looking at code that says:
return (X*)y;
if I can't say "print (X*)y".
If the type is coming from a library, we may not ever create objects of this
type.
Finally, we use vast amounts of space in object files for debug info, since we
emit the same debug info in multiple object files. Trying to optimize by not
emitting debug info in this case doesn't seem likely to be a big win given our
overall strategy. I don't have any data to support that claim, though.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33429
More information about the Gcc-bugs
mailing list