On Fri, Jun 22, 2012 at 9:46 PM, Jason Merrill <ja...@redhat.com> wrote: > On 06/22/2012 02:15 PM, Cary Coutant wrote: >> >> But if the consensus turns out to be that enumerators should be in >> pubnames, wouldn't it also be fairly easy to change prune_unused_types >> so that it doesn't mark enumerators, and change output_pubnames to >> skip enumerators that have been pruned? > > > This makes sense to me.
Enclosed is a patch that does it this way. It requires special-casing enumerators in two places. Personally, it seems cleaner to me just to put them in the pubtypes table, but I am happy to do it whichever way you want. Let me know, Sterling gcc/ChangeLog 2012-06-25 Sterling Augustine <saugust...@google.com> * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator. (prune_unused_types): Add check for DW_TAG_enumerator.
enum.patch
Description: Binary data