aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-08-17 20:26:47 +0000
committerJeff Law <law@gcc.gnu.org>1998-08-17 14:26:47 -0600
commitdef9b0064bda2dc13454a0a963ad143eff5f3993 (patch)
tree8bce95d92d0595ed739748940d4e2459713b7ecd /gcc/tree.c
parente7b7998a0c8c79b23d9580a916c1ba1745fe7c97 (diff)
downloadgcc-def9b0064bda2dc13454a0a963ad143eff5f3993.zip
gcc-def9b0064bda2dc13454a0a963ad143eff5f3993.tar.gz
gcc-def9b0064bda2dc13454a0a963ad143eff5f3993.tar.bz2
* From Graham
* tree.c (build_index_type): Copy TYPE_SIZE_UNIT from sizetype to itype. * c-decl.c (finish_enum): Copy TYPE_SIZ_UNIT from enumtype to tem. From-SVN: r21810
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 59c02b4..044be55 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -4130,6 +4130,7 @@ build_index_type (maxval)
TYPE_MODE (itype) = TYPE_MODE (sizetype);
TYPE_SIZE (itype) = TYPE_SIZE (sizetype);
+ TYPE_SIZE_UNIT (itype) = TYPE_SIZE_UNIT (sizetype);
TYPE_ALIGN (itype) = TYPE_ALIGN (sizetype);
if (TREE_CODE (maxval) == INTEGER_CST)
{