c++: better fixup_type_variants
authorNathan Sidwell <nathan@acm.org>
Tue, 28 Jul 2020 15:49:13 +0000 (08:49 -0700)
committerNathan Sidwell <nathan@acm.org>
Tue, 28 Jul 2020 16:01:31 +0000 (09:01 -0700)
commit0cd58a9f091b39c5e41b7954d6c4bd88f3567d49
treec4e176cb7a9150a9bdc489f871bfa6569d34d8ee
parent9b837af463dc81f849fe99a0ad4f3b477d87c1e3
c++: better fixup_type_variants

fixup_type_variants was almost doing all that finish_struct needs.
May as well make it do it all.

gcc/cp/
* class.c (fixup_type_variants): Copy TYPE_SIZE and
TYPE_SIZE_UINIT.
(finish_struct): Call it.
gcc/cp/class.c