https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112656

--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Indu Bhagat <ibha...@gcc.gnu.org>:

https://gcc.gnu.org/g:b6abc5dbfa5342347828b9feb4d9060071ff819c

commit r14-6112-gb6abc5dbfa5342347828b9feb4d9060071ff819c
Author: Indu Bhagat <indu.bha...@oracle.com>
Date:   Mon Dec 4 01:57:34 2023 -0800

    BTF: fix PR debug/112656

    PR debug/112656 - btf: function prototypes generated with name

    With this patch, all BTF_KIND_FUNC_PROTO will appear anonymous in the
    generated BTF section.

    As noted in the discussion in the bugzilla, the number of
    BTF_KIND_FUNC_PROTO types output varies across targets (BPF with -mco-re
    vs non-BPF targets).  Hence the check in the test case merely checks
    that all BTF_KIND_FUNC_PROTO appear anonymous.

    gcc/ChangeLog:

            PR debug/112656
            * btfout.cc (btf_asm_type): Fixup ctti_name for all
            BTF types of kind BTF_KIND_FUNC_PROTO.

    gcc/testsuite/ChangeLog:

            PR debug/112656
            * gcc.dg/debug/btf/btf-function-7.c: New test.

Reply via email to