PR debug/26964
* dwarf2out.c (gen_type_die): Don't write out a DIE for
ENUMERAL_TYPE if it was already written out.
From-SVN: r120221
+2006-12-27 Ian Lance Taylor <iant@google.com>
+
+ PR debug/26964
+ * dwarf2out.c (gen_type_die): Don't write out a DIE for
+ ENUMERAL_TYPE if it was already written out.
+
2006-12-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
PR middle-end/29335
}
if (TREE_CODE (type) == ENUMERAL_TYPE)
- gen_enumeration_type_die (type, context_die);
+ {
+ /* This might have been written out by the call to
+ declare_in_namespace. */
+ if (!TREE_ASM_WRITTEN (type))
+ gen_enumeration_type_die (type, context_die);
+ }
else
gen_struct_or_union_type_die (type, context_die);