Re: stor-layout: Set TYPE_TYPELESS_STORAGE consistently for type variants

2023-03-21 Thread Richard Biener via Gcc-patches
On Mon, Mar 20, 2023 at 8:47 PM Joseph Myers wrote: > > I've observed an LTO wrong-code bug with a large testcase in GCC 12, > that results from TYPE_TYPELESS_STORAGE not being set consistently on > type variants. > > Specifically, in the LTO stage of compilation, there is an aggregate > type

stor-layout: Set TYPE_TYPELESS_STORAGE consistently for type variants

2023-03-20 Thread Joseph Myers
I've observed an LTO wrong-code bug with a large testcase in GCC 12, that results from TYPE_TYPELESS_STORAGE not being set consistently on type variants. Specifically, in the LTO stage of compilation, there is an aggregate type passed to get_alias_set, whose TYPE_MAIN_VARIANT does not have