Commit fc9e8a14 by Jakub Jelinek Committed by Jakub Jelinek

dwarf2out.c (gen_enumeration_type_die): If enum has a negative value, don't output it as unsigned.

	* dwarf2out.c (gen_enumeration_type_die): If enum has a negative
	value, don't output it as unsigned.

From-SVN: r32807
parent 930b9832
2000-03-29 Jakub Jelinek <jakub@redhat.com>
* dwarf2out.c (gen_enumeration_type_die): If enum has a negative
value, don't output it as unsigned.
Wed Mar 29 10:53:49 2000 Jeffrey A Law (law@cygnus.com)
* stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
......
......@@ -7905,8 +7905,14 @@ gen_enumeration_type_die (type, context_die)
IDENTIFIER_POINTER (TREE_PURPOSE (link)));
if (host_integerp (TREE_VALUE (link), 0))
add_AT_unsigned (enum_die, DW_AT_const_value,
tree_low_cst (TREE_VALUE (link), 0));
{
if (tree_int_cst_sgn (TREE_VALUE (link)) < 0)
add_AT_int (enum_die, DW_AT_const_value,
tree_low_cst (TREE_VALUE (link), 0));
else
add_AT_unsigned (enum_die, DW_AT_const_value,
tree_low_cst (TREE_VALUE (link), 0));
}
}
}
else
......
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