------- Comment #2 from hjl dot tools at gmail dot com 2010-05-27 22:58 ------- This patch:
--- Index: dwarf2out.c =================================================================== --- dwarf2out.c (revision 159943) +++ dwarf2out.c (working copy) @@ -19427,7 +19427,8 @@ gen_typedef_die (tree decl, dw_die_ref c generate that DIE right away. add_type_attribute called below will then pick (via lookup_type_die) that anonymous struct DIE. */ - gen_tagged_type_die (type, context_die, DINFO_USAGE_DIR_USE); + if (is_naming_typedef_decl (decl)) + gen_tagged_type_die (type, context_die, DINFO_USAGE_DIR_USE); } add_type_attribute (type_die, type, TREE_READONLY (decl), --- seems to work. But I don't know if it is correct. -- hjl dot tools at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at redhat dot com Target Milestone|--- |4.6.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44302