diff options
author | Per Bothner <bothner@gcc.gnu.org> | 1996-02-06 14:26:35 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 1996-02-06 14:26:35 -0800 |
commit | 7ae6c85803f36a61ebf68a1561f27b90dd1d3fb6 (patch) | |
tree | b0c1b605bca7339e5fbcb5c35bac28ad5b8957ed | |
parent | e6ca2c17dc359915ed37cbeea6da852873ff3b94 (diff) | |
download | gcc-7ae6c85803f36a61ebf68a1561f27b90dd1d3fb6.zip gcc-7ae6c85803f36a61ebf68a1561f27b90dd1d3fb6.tar.gz gcc-7ae6c85803f36a61ebf68a1561f27b90dd1d3fb6.tar.bz2 |
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
-rw-r--r-- | gcc/dbxout.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 3ff1a2c..f12cae8 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -1011,9 +1011,12 @@ dbxout_range_type (type) dbxout_type (type, 0, 0); /* E.g. Pascal's ARRAY [BOOLEAN] of INTEGER */ else { - /* This used to say `r1' and we used to take care - to make sure that `int' was type number 1. */ - dbxout_type_index (integer_type_node); + /* Traditionally, we made sure 'int' was type 1, and builtin types + were defined to be sub-ranges of int. Unfortunately, this + 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) fprintf (asmfile, ";%d", |