diff options
author | Cupertino Miranda <cupertino.miranda@oracle.com> | 2024-01-03 11:37:34 +0000 |
---|---|---|
committer | Cupertino Miranda <cupertino.miranda@oracle.com> | 2024-01-08 18:35:25 +0000 |
commit | dfc88fb51c1f9c26215adf6a308c18e23992cdd9 (patch) | |
tree | b2e806abde6b9bdfc7b5fe7533b203fa5654bd5b /gcc/tree-vect-loop-manip.cc | |
parent | 4a5bb8bc1c562ba4d6e97f1979de6b8ac566f04f (diff) | |
download | gcc-dfc88fb51c1f9c26215adf6a308c18e23992cdd9.zip gcc-dfc88fb51c1f9c26215adf6a308c18e23992cdd9.tar.gz gcc-dfc88fb51c1f9c26215adf6a308c18e23992cdd9.tar.bz2 |
bpf: Correct BTF for kernel_helper attributed decls
This patch fix a problem with kernel_helper attribute BTF information,
which incorrectly generates BTF_KIND_FUNC entry.
This BTF entry although accurate with traditional extern function
declarations, once the function is attributed with kernel_helper, it is
semantically incompatible of the kernel helpers in BPF infrastructure.
gcc/ChangeLog:
PR target/113225
* btfout.cc (btf_collect_datasec): Skip creating BTF info for
extern and kernel_helper attributed function decls.
gcc/testsuite/ChangeLog:
* gcc.target/bpf/attr-kernel-helper.c: New test.
Diffstat (limited to 'gcc/tree-vect-loop-manip.cc')
0 files changed, 0 insertions, 0 deletions