Re: [PATCH][dwarf2out] Fix PR79000

2017-01-05 Thread Jason Merrill
OK. On Thu, Jan 5, 2017 at 8:19 AM, Richard Biener wrote: > > The following fixes a LTO dwarf2out ICE when mixing C and C++ TUs. > is_cxx then claims we're C++ but we are not happy to see a C typedef > handled by > > gen_typedef_die (tree decl, dw_die_ref context_die) > { > ... > if (is

[PATCH][dwarf2out] Fix PR79000

2017-01-05 Thread Richard Biener
The following fixes a LTO dwarf2out ICE when mixing C and C++ TUs. is_cxx then claims we're C++ but we are not happy to see a C typedef handled by gen_typedef_die (tree decl, dw_die_ref context_die) { ... if (is_naming_typedef_decl (TYPE_NAME (type))) { /* Here