PR debug/39285
* dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144407
138bc75d-0d04-0410-961f-
82ee72b054a4
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>
PR tree-optimization/39233
add_name_attribute (enum_die,
IDENTIFIER_POINTER (TREE_PURPOSE (link)));
+ if (TREE_CODE (value) == CONST_DECL)
+ value = DECL_INITIAL (value);
+
if (host_integerp (value, TYPE_UNSIGNED (TREE_TYPE (value))))
/* DWARF2 does not provide a way of indicating whether or
not enumeration constants are signed or unsigned. GDB