mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 12:00:03 -05:00
* 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
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user