https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77728
--- Comment #13 from rguenther at suse dot de <rguenther at suse dot de> --- On Wed, 12 Apr 2017, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77728 > > Jakub Jelinek <jakub at gcc dot gnu.org> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| |jason at gcc dot gnu.org > > --- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> --- > I had a brief look at why there is the difference in DECL_ALIGN on TYPE_DECL > in this case, and the difference seems to come up from whether the type > size/layout has been finalized before calling layout_decl on the corresponding > TYPE_DECL or not. The question is if we ever except for the arm/aarch64 bug > ever care about DECL_ALIGN on TYPE_DECLs, if yes, perhaps finalize_type_size > should check if type or any variant's TYPE_NAME is a TYPE_DECL and in that > case > relayout_decl it? IMHO TYPE_DECL shouldn't even _have_ DECL_ALIGN ...