On Tue, 23 Sep 2025, David Faust wrote:

> Add two new c-family attributes, "btf_type_tag" and "btf_decl_tag"
> along with attribute handlers for them.  These attributes may be
> used to annotate types or declarations respectively with arbitrary
> strings, which will be recorded in DWARF and/or BTF information.
> Both attributes accept exactly one string argument.  Wide strings
> are not supported.
> 
> gcc/c-family/
>       * c-attribs.cc (c_common_attribute_table): Add btf_decl_tag and
>       btf_type_tag attributes.
>       (handle_btf_decl_tag_attribute): New handler for btf_decl_tag.
>       (hanlde_btf_type_tag_attribute): New handler for btf_type_tag.
>       (btf_tag_args_ok): Helper for new attribute handlers.
> 
> gcc/testsuite/
>       * gcc.dg/attr-btf-decl-tag-1.c: New test.
>       * gcc.dg/attr-btf-decl-tag-2.c: New test.
>       * gcc.dg/attr-btf-type-tag-1.c: New test.
>       * gcc.dg/attr-btf-type-tag-2.c: New test.
>       * gcc.dg/attr-btf-type-tag-3.c: New test.

This patch version is OK.

-- 
Joseph S. Myers
[email protected]

Reply via email to