https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107479
Bug ID: 107479 Summary: bpf: add __builtin_btf_type_id Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: david.faust at oracle dot com Target Milestone: --- LLVM supports a BPF builtin: __builtin_btf_type_id (param, flag) which returns the BTF type id of 'param' to the program, and records a BPF CO-RE relocation according to 'flag'. We should support the same functionality in GCC. These are the relevant changes in LLVM and clang: https://reviews.llvm.org/D74572 https://reviews.llvm.org/D74668