Commit 844216f3 by Richard Guenther Committed by Richard Biener

re PR debug/39285 (Missing debug info for enum members in C++)

2009-02-24  Richard Guenther  <rguenther@suse.de>

	PR debug/39285
	* dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.

From-SVN: r144407
parent 71adbef3
2009-02-24 Richard Guenther <rguenther@suse.de> 2009-02-24 Richard Guenther <rguenther@suse.de>
PR debug/39285
* dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
2009-02-24 Richard Guenther <rguenther@suse.de>
Zdenek Dvorak <ook@ucw.cz> Zdenek Dvorak <ook@ucw.cz>
PR tree-optimization/39233 PR tree-optimization/39233
......
...@@ -13234,6 +13234,9 @@ gen_enumeration_type_die (tree type, dw_die_ref context_die) ...@@ -13234,6 +13234,9 @@ gen_enumeration_type_die (tree type, dw_die_ref context_die)
add_name_attribute (enum_die, add_name_attribute (enum_die,
IDENTIFIER_POINTER (TREE_PURPOSE (link))); IDENTIFIER_POINTER (TREE_PURPOSE (link)));
if (TREE_CODE (value) == CONST_DECL)
value = DECL_INITIAL (value);
if (host_integerp (value, TYPE_UNSIGNED (TREE_TYPE (value)))) if (host_integerp (value, TYPE_UNSIGNED (TREE_TYPE (value))))
/* DWARF2 does not provide a way of indicating whether or /* DWARF2 does not provide a way of indicating whether or
not enumeration constants are signed or unsigned. GDB not enumeration constants are signed or unsigned. GDB
......
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