Commit 4c3ddf05 by Richard Stallman

(dbxout_type): Print `-2' instead of `0037777777776' for an enumeration constant…

(dbxout_type): Print `-2' instead of `0037777777776' for an enumeration constant whose value is -2...

(dbxout_type): Print `-2' instead of `0037777777776'
for an enumeration constant whose value is -2;
otherwise, GDB 4.11 rejects the type.

From-SVN: r5979
parent 41b21cfc
...@@ -1270,12 +1270,12 @@ dbxout_type (type, full, show_arg_types) ...@@ -1270,12 +1270,12 @@ dbxout_type (type, full, show_arg_types)
{ {
fprintf (asmfile, "%s:", IDENTIFIER_POINTER (TREE_PURPOSE (tem))); fprintf (asmfile, "%s:", IDENTIFIER_POINTER (TREE_PURPOSE (tem)));
if (TREE_INT_CST_HIGH (TREE_VALUE (tem)) == 0) if (TREE_INT_CST_HIGH (TREE_VALUE (tem)) == 0)
{ fprintf (asmfile, "%lu",
if (TREE_INT_CST_LOW (TREE_VALUE (tem)) < 0) (unsigned long) TREE_INT_CST_LOW (TREE_VALUE (tem)));
fprintf (asmfile, "%u", TREE_INT_CST_LOW (TREE_VALUE (tem))); else if (TREE_INT_CST_HIGH (TREE_VALUE (tem)) == -1
else && TREE_INT_CST_LOW (TREE_VALUE (tem)) < 0)
fprintf (asmfile, "%d", TREE_INT_CST_LOW (TREE_VALUE (tem))); fprintf (asmfile, "%ld",
} (long) TREE_INT_CST_LOW (TREE_VALUE (tem)));
else else
print_int_cst_octal (TREE_VALUE (tem)); print_int_cst_octal (TREE_VALUE (tem));
fprintf (asmfile, ","); fprintf (asmfile, ",");
......
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