On Mon, 22 Dec 2025, Qing Zhao wrote: > Hi, > > This is the 4th version of the patch. > > Compared to the 3rd version, the major difference are: > https://gcc.gnu.org/pipermail/gcc-patches/2025-December/703480.html > > 1. In grokfield, use declspecs->type instead of TREE_TYPE(value). > before checking "declspecs->type", add one more condition > "declspecs->typespec_kind == ctsk_tagdef". > 2. As a result, in the routine "verify_counted_by_for_top_anonymous_type" > eliminate the code for POINTER_TYPE_P (type). > > 3. Additional testing cases for fields with anonymous structure type to cover > nested pointers to, arrays of pointers, pointers to functons, etc. > (in gcc/testsuite/gcc.dg/counted-by-anonymous.c). > > Bootstrapped and regression tested on both X86 and aarch64, Okay for > committing?
OK. -- Joseph S. Myers [email protected]
