PING^2: [patch] pr/54508: fix incomplete debug information for class

Paul_Koning@Dell.com Paul_Koning@Dell.com
Thu Oct 4 20:00:00 GMT 2012


On Oct 4, 2012, at 12:09 PM, <Paul_Koning@Dell.com>
 <Paul_Koning@Dell.com> wrote:

> Ping ^ 2...
> 
> ------
> 
> If the only reference in a source file is to a static method of a class, then GCC would output debug information for the class name but not any of its members or base classes.  The attached patch fixes this by having "prune_unused_types_mark" mark all of the parent's children if the parent DIE type is for a class.
> 
> The associated new testcase verifies this, and also verifies this that references to a function in a namespace do *not* cause other parts of that namespace to be emitted as debug information, but that references to a method in a class (or struct or union) do emit the other information for that class.
> 
> Checked by "make check" on dwarf2.exp.

My apologies -- I missed something when I did that check.  Some existing testcases need to be adjusted to match.  Updated patch coming shortly.

	paul




More information about the Gcc-patches mailing list