https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65690
--- Comment #8 from Jan Hubicka <hubicka at gcc dot gnu.org> --- I also considered just copying over the stuff that layout_decl fills. I guess it is better than calling it and copying back TYPE_SIZE, but this is far from being my area. I think we also want to preserve attribute lists.