From: Jeffrey A Law Date: Mon, 17 Aug 1998 20:24:59 +0000 (+0000) Subject: * From Graham X-Git-Tag: prereleases/egcs-1.1-prerelease~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8a02b6aed650fb0cdccc5bd3e444a1a68ca426d;p=thirdparty%2Fgcc.git * 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: r21809 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a41e74df9bf5..47e99627e1cc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 3af985d732d1..ccaa7d2be36b 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -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); diff --git a/gcc/tree.c b/gcc/tree.c index 1f6b5a66e72d..d1e8b3419a6f 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -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) {