projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
638141a
)
(plain_type_1, case ARRAY_TYPE): Subtract lower bound when writing
author
Richard Kenner
<kenner@gcc.gnu.org>
Sat, 30 Dec 1995 12:57:04 +0000
(07:57 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Sat, 30 Dec 1995 12:57:04 +0000
(07:57 -0500)
dimension.
From-SVN: r10906
gcc/sdbout.c
patch
|
blob
|
history
diff --git
a/gcc/sdbout.c
b/gcc/sdbout.c
index 73beebac5e74ae915711b0b2ad8aa2b5a4dd552e..3217a8523dacdaf85692d751619004c8e7e055b3 100644
(file)
--- a/
gcc/sdbout.c
+++ b/
gcc/sdbout.c
@@
-538,7
+538,8
@@
plain_type_1 (type, level)
if (sdb_n_dims < SDB_MAX_DIM)
sdb_dims[sdb_n_dims++]
= (TYPE_DOMAIN (type)
- ? TREE_INT_CST_LOW (TYPE_MAX_VALUE (TYPE_DOMAIN (type))) + 1
+ ? (TREE_INT_CST_LOW (TYPE_MAX_VALUE (TYPE_DOMAIN (type)))
+ - TREE_INT_CST_LOW (TYPE_MIN_VALUE (TYPE_DOMAIN (type))) + 1)
: 0);
return PUSH_DERIVED_LEVEL (DT_ARY, m);
}