summaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-08-17 20:26:47 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-08-17 20:26:47 +0000
commit24a7e61196f682d2e633e6dccfb2166098bdaa0c (patch)
tree8bce95d92d0595ed739748940d4e2459713b7ecd /gcc/c-decl.c
parent8cffd78a8238d4fe848ca10949cd80e6b2969f6e (diff)
downloadgcc-24a7e61196f682d2e633e6dccfb2166098bdaa0c.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21810 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 5d20c9770dd..1b040b1db24 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -6219,6 +6219,7 @@ finish_enum (enumtype, values, attributes)
TYPE_MIN_VALUE (tem) = TYPE_MIN_VALUE (enumtype);
TYPE_MAX_VALUE (tem) = TYPE_MAX_VALUE (enumtype);
TYPE_SIZE (tem) = TYPE_SIZE (enumtype);
+ TYPE_SIZE_UNIT (tem) = TYPE_SIZE_UNIT (enumtype);
TYPE_MODE (tem) = TYPE_MODE (enumtype);
TYPE_PRECISION (tem) = TYPE_PRECISION (enumtype);
TYPE_ALIGN (tem) = TYPE_ALIGN (enumtype);