Re: [PATCH] Emit DWARF5 DW_AT_export_symbols for namespaces

2017-07-28 Thread Jason Merrill
On Fri, Jul 21, 2017 at 4:33 PM, Jakub Jelinek wrote: > DWARF5 introduced DW_AT_export_symbols that may be preset on > DW_TAG_namespace or DW_TAG_{structure,union,class}_type to signalize > inline or anonymous namespaces or anonymous structures/unions/classes. > > What we were emitting instead is

Re: [PATCH] Emit DWARF5 DW_AT_export_symbols for namespaces

2017-07-25 Thread Jakub Jelinek
On Tue, Jul 25, 2017 at 01:45:31PM +0200, Marek Polacek wrote: > > This patch doesn't do anything about anon struct/union/class, I've tried > > to handle it, the problem is that ANON_AGGR_TYPE_P flag is set too late, > > after the debug hook adds the type DIE. Any thoughts on how to handle that? >

Re: [PATCH] Emit DWARF5 DW_AT_export_symbols for namespaces

2017-07-25 Thread Marek Polacek
On Fri, Jul 21, 2017 at 10:33:12PM +0200, Jakub Jelinek wrote: > Hi! > > DWARF5 introduced DW_AT_export_symbols that may be preset on > DW_TAG_namespace or DW_TAG_{structure,union,class}_type to signalize > inline or anonymous namespaces or anonymous structures/unions/classes. > > What we were em

[PATCH] Emit DWARF5 DW_AT_export_symbols for namespaces

2017-07-21 Thread Jakub Jelinek
Hi! DWARF5 introduced DW_AT_export_symbols that may be preset on DW_TAG_namespace or DW_TAG_{structure,union,class}_type to signalize inline or anonymous namespaces or anonymous structures/unions/classes. What we were emitting instead is an implicit DW_TAG_imported_module in the outer namespace.