Commit ae64e535 by Ian Lance Taylor Committed by Ian Lance Taylor

re PR debug/26964 (Duplicate debug info for enums in namespaces)

	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
parent 88549b81
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
......
......@@ -12725,7 +12725,12 @@ gen_type_die (tree type, dw_die_ref context_die)
}
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment