Commit 7ae6c858 by Per Bothner

dbxout.c (dbxout_range_type): Emit non-range INTEGER_TYPE as a sub-range of…

dbxout.c (dbxout_range_type): Emit non-range INTEGER_TYPE as a sub-range of itself (so gdb can tell the...

* dbxout.c (dbxout_range_type):  Emit non-range INTEGER_TYPE
as a sub-range of itself (so gdb can tell the difference).

From-SVN: r11179
parent e6ca2c17
...@@ -1011,9 +1011,12 @@ dbxout_range_type (type) ...@@ -1011,9 +1011,12 @@ dbxout_range_type (type)
dbxout_type (type, 0, 0); /* E.g. Pascal's ARRAY [BOOLEAN] of INTEGER */ dbxout_type (type, 0, 0); /* E.g. Pascal's ARRAY [BOOLEAN] of INTEGER */
else else
{ {
/* This used to say `r1' and we used to take care /* Traditionally, we made sure 'int' was type 1, and builtin types
to make sure that `int' was type number 1. */ were defined to be sub-ranges of int. Unfortunately, this
dbxout_type_index (integer_type_node); does not allow us to distinguish true sub-ranges from integer
types. So, instead we define integer (non-sub-range) types as
sub-ranges of themselves. */
dbxout_type_index (type);
} }
if (TREE_CODE (TYPE_MIN_VALUE (type)) == INTEGER_CST) if (TREE_CODE (TYPE_MIN_VALUE (type)) == INTEGER_CST)
fprintf (asmfile, ";%d", fprintf (asmfile, ";%d",
......
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