diff options
author | Jose E. Marchesi <jose.marchesi@oracle.com> | 2023-07-24 11:52:30 +0200 |
---|---|---|
committer | Jose E. Marchesi <jose.marchesi@oracle.com> | 2023-07-24 11:52:30 +0200 |
commit | da445a5858299ed2a72af1089c225a438ab93ce2 (patch) | |
tree | 6e1a9aa79abc03041d3d35c9ebce5640fbfda704 /gcc/tree-vectorizer.h | |
parent | f1e34551e4d6e259ab3bd0c9aba4fa1f0c448214 (diff) | |
download | gcc-da445a5858299ed2a72af1089c225a438ab93ce2.zip gcc-da445a5858299ed2a72af1089c225a438ab93ce2.tar.gz gcc-da445a5858299ed2a72af1089c225a438ab93ce2.tar.bz2 |
bpf: remove -mkernel option and BPF_KERNEL_VERSION_CODE
Having the ability of specifying a target kernel version when building
a BPF program is one of these things that sound pretty good in theory,
but simply don't work in practice: kernels in practice contain
backports, etc. Also, the addition of CO-RE to BPF has made this
uneccessary.
This patch removes the -mkernel command line option and also the
associated BPF_KERNEL_VERSION_CODE pre-processor constant.
Tested in bpf-unknown-none.
gcc/ChangeLog
* config/bpf/bpf-opts.h (enum bpf_kernel_version): Remove enum.
* config/bpf/bpf.opt (mkernel): Remove option.
* config/bpf/bpf.cc (bpf_target_macros): Do not define
BPF_KERNEL_VERSION_CODE.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions