diff options
author | Richard Henderson <rth@cygnus.com> | 1997-12-18 15:20:19 -0800 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1997-12-18 16:20:19 -0700 |
commit | e1ee5cdcbf209d2f16473a2ff6e91ff774edb3e7 (patch) | |
tree | f6256a46a8fe9fd54c5f8fa94aaed268e376f33b /gcc/dbxout.c | |
parent | 8342981f2de7306bf857c96b8b418be8882a0c63 (diff) | |
download | gcc-e1ee5cdcbf209d2f16473a2ff6e91ff774edb3e7.zip gcc-e1ee5cdcbf209d2f16473a2ff6e91ff774edb3e7.tar.gz gcc-e1ee5cdcbf209d2f16473a2ff6e91ff774edb3e7.tar.bz2 |
tree.c (build_range_type): Allow creation of ranges with no maximum.
* tree.c (build_range_type): Allow creation of ranges with no maximum.
* dbxout.c (dbxout_range_type): Handle missing TYPE_MAX_VALUE.
* dwarf2out.c (add_subscript_info): Likewise.
* dwarfout.c (subscript_data_attribute, byte_size_attribute): Likewise.
* sdbout.c (plain_type_1): Likewise.
* stmt.c (pushcase_range, all_cases_count, node_has_high_bound):
Likewise.
* fold-const.c (int_const_binop, fold_convert, make_range, fold):
Likewise.
From-SVN: r17142
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r-- | gcc/dbxout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 11af421..fcb5d86 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -954,7 +954,8 @@ dbxout_range_type (type) TREE_INT_CST_LOW (TYPE_MIN_VALUE (type))); else fprintf (asmfile, ";0"); - if (TREE_CODE (TYPE_MAX_VALUE (type)) == INTEGER_CST) + if (TYPE_MAX_VALUE (type) + && TREE_CODE (TYPE_MAX_VALUE (type)) == INTEGER_CST) fprintf (asmfile, ";%d;", TREE_INT_CST_LOW (TYPE_MAX_VALUE (type))); else |