diff options
author | Jason Merrill <jason@yorick.cygnus.com> | 1998-10-29 21:43:52 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-10-29 16:43:52 -0500 |
commit | 59c06042bdf599b44f185a6f4a33e897d0608ea6 (patch) | |
tree | 1acdc1ebf183761071faa0cb5769047c0b32a6e4 | |
parent | d59f13370c30251179a486a27d585d58d114efeb (diff) | |
download | gcc-59c06042bdf599b44f185a6f4a33e897d0608ea6.tar.gz |
decl.c (finish_enum): Also set TYPE_SIZE_UNIT.
* decl.c (finish_enum): Also set TYPE_SIZE_UNIT.
* class.c (finish_struct_bits): Likewise.
From-SVN: r23437
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/class.c | 1 | ||||
-rw-r--r-- | gcc/cp/decl.c | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 24a746d21e2..0c3a7a03467 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -79,6 +79,11 @@ Fri Oct 2 02:07:26 1998 Mumit Khan <khan@xraylith.wisc.edu> * typeck.c (c_expand_return): Handle the case that valtype is wider than the functions return type. +1998-08-17 Jason Merrill <jason@yorick.cygnus.com> + + * decl.c (finish_enum): Also set TYPE_SIZE_UNIT. + * class.c (finish_struct_bits): Likewise. + 1998-08-17 Mark Mitchell <mark@markmitchell.com> * pt.c (check_explicit_specialization): Don't abort on bogus diff --git a/gcc/cp/class.c b/gcc/cp/class.c index b9874d04a9a..8a61bf810ec 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -1848,6 +1848,7 @@ finish_struct_bits (t, max_has_virtual) TYPE_MAX_VALUE (variants) = TYPE_MAX_VALUE (t); TYPE_FIELDS (variants) = TYPE_FIELDS (t); TYPE_SIZE (variants) = TYPE_SIZE (t); + TYPE_SIZE_UNIT (variants) = TYPE_SIZE_UNIT (t); variants = TYPE_NEXT_VARIANT (variants); } diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 02330ee5132..92b19dc87b2 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -11796,6 +11796,7 @@ finish_enum (enumtype, values) 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); |