Re: [PATCH] Handle OPAQUE_TYPE specially in verify_type [PR106833]

2022-09-08 Thread Richard Biener via Gcc-patches
> Am 08.09.2022 um 07:53 schrieb Kewen.Lin : > > Hi, > > As PR106833 shows, cv-qualified opaque type can cause ICE > during LTO. It exposes that we missd to handle OPAQUE_TYPE > well in type verification. As Richi pointed out, also > assuming that target will always define

[PATCH] Handle OPAQUE_TYPE specially in verify_type [PR106833]

2022-09-07 Thread Kewen.Lin via Gcc-patches
Hi, As PR106833 shows, cv-qualified opaque type can cause ICE during LTO. It exposes that we missd to handle OPAQUE_TYPE well in type verification. As Richi pointed out, also assuming that target will always define TYPE_MAIN_VARIANT and TYPE_CANONICAL for opaque type, this patch is to check