]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* From Graham
authorJeffrey A Law <law@cygnus.com>
Mon, 17 Aug 1998 20:24:59 +0000 (20:24 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 17 Aug 1998 20:24:59 +0000 (14:24 -0600)
        * 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: r21809

gcc/ChangeLog
gcc/c-decl.c
gcc/tree.c

index a41e74df9bf587eb18cf5c61dcdbb6f69b133188..47e99627e1cc9ba5c09cb4d8746402c394e7282a 100644 (file)
@@ -1,5 +1,10 @@
 Mon Aug 17 21:07:19 1998  Jeffrey A Law  (law@cygnus.com)
 
+       * 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.
+
        * rs6000.c (secondary_reload_class): For TARGET_ELF, indicate that
        a BASE_REGS register is needed as an intermediate when copying
        a symbolic value into any register class other than BASE_REGS.
index 3af985d732d1807da2169c14692d4a5ee8ff3ce0..ccaa7d2be36b2154f6defcb09edc9e06c22b0bb4 100644 (file)
@@ -6216,6 +6216,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);
index 1f6b5a66e72d5e250df923a569ea217ea7e2a5bd..d1e8b3419a6f3de88071f89ba42b3e6bccf52da3 100644 (file)
@@ -4127,6 +4127,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)
     {