Re: [PATCH] c: Don't drop vector attributes that affect type identity [PR98852]

2021-04-14 Thread Jeff Law via Gcc-patches
On 4/14/2021 9:32 AM, Richard Sandiford via Gcc-patches wrote: types are distinct from GNU vector types in at least their mangling. However, there used to be nothing explicit in the VECTOR_TYPE itself to indicate the difference: we simply treated them as distinct TYPE_MAIN_VARIANTs. This cau

Re: [PATCH] c: Don't drop vector attributes that affect type identity [PR98852]

2021-04-14 Thread Joseph Myers
On Wed, 14 Apr 2021, Richard Sandiford via Gcc-patches wrote: > gcc/ > PR c/98852 > * attribs.h (affects_type_identity_attributes): Declare. > * attribs.c (remove_attributes_matching): New function. > (affects_type_identity_attributes): Likewise. > > gcc/c/ > PR c/98

[PATCH] c: Don't drop vector attributes that affect type identity [PR98852]

2021-04-14 Thread Richard Sandiford via Gcc-patches
types are distinct from GNU vector types in at least their mangling. However, there used to be nothing explicit in the VECTOR_TYPE itself to indicate the difference: we simply treated them as distinct TYPE_MAIN_VARIANTs. This caused problems like the ones reported in PR95726. The fix for that P