diff options
author | Jeffrey A Law <law@cygnus.com> | 1998-08-17 20:26:47 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-08-17 14:26:47 -0600 |
commit | def9b0064bda2dc13454a0a963ad143eff5f3993 (patch) | |
tree | 8bce95d92d0595ed739748940d4e2459713b7ecd /gcc | |
parent | e7b7998a0c8c79b23d9580a916c1ba1745fe7c97 (diff) | |
download | gcc-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')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-decl.c | 1 | ||||
-rw-r--r-- | gcc/tree.c | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a6a1c4c..a7b3d6f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ Mon Aug 17 11:46: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 5d20c97..1b040b1 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); @@ -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) { |