This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/44302] [4.6 Regression] Failed to bootstrap
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 May 2010 22:58:54 -0000
- Subject: [Bug bootstrap/44302] [4.6 Regression] Failed to bootstrap
- References: <bug-44302-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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