GCC port for eBPF

Programming / Compilers / GCC - jemarch [138bc75d-0d04-0410-961f-82ee72b054a4] - 9 September 2019 10:13 EDT

This patch series introduces a port of GCC to eBPF, which is a virtual machine that resides in the Linux kernel. Initially intended for user-level packet capture and filtering, eBPF is nowadays generalized to serve as a general-purpose infrastructure also for non-networking purposes.

The binutils support is already upstream. See https://sourceware.org/ml/binutils/2019-05/msg00306.html.

ChangeLog:

- MAINTAINERS: Add myself as the maintainer of the eBPF port. Remove myself from Write After Approval section.
- configure.ac: Support for bpf-*-* targets.
- configure: Regenerate.

contrib/ChangeLog:

- config-list.mk (LIST): Disable go in bpf-*-* targets.

gcc/ChangeLog:

- doc/invoke.texi (Option Summary): Cover eBPF. (eBPF Options): New section.
- doc/extend.texi (BPF Built-in Functions): Likewise. (BPF Kernel Helpers): Likewise.
- config.gcc: Support for bpf-*-* targets.
- common/config/bpf/bpf-common.c: New file.
- config/bpf/t-bpf: Likewise.
- config/bpf/predicates.md: Likewise.
- config/bpf/constraints.md: Likewise.
- config/bpf/bpf.opt: Likewise.
- config/bpf/bpf.md: Likewise.
- config/bpf/bpf.h: Likewise.
- config/bpf/bpf.c: Likewise.
- config/bpf/bpf-protos.h: Likewise.
- config/bpf/bpf-opts.h: Likewise.
- config/bpf/bpf-helpers.h: Likewise.
- config/bpf/bpf-helpers.def: Likewise.

gcc/testsuite/ChangeLog:

- gcc.dg/builtins-config.h: eBPF doesn't support C99 standard functions.
- gcc.c-torture/compile/20101217-1.c: Add a function prototype for printf.
- gcc.c-torture/compile/20000211-1.c: Skip if target bpf-*-*.
- gcc.c-torture/compile/poor.c: Likewise.
- gcc.c-torture/compile/pr25311.c: Likewise.
- gcc.c-torture/compile/pr39928-1.c: Likewise.
- gcc.c-torture/compile/pr70061.c: Likewise.
- gcc.c-torture/compile/920501-7.c: Likewise.
- gcc.c-torture/compile/20000403-1.c: Likewise.
- gcc.c-torture/compile/20001226-1.c: Likewise.
- gcc.c-torture/compile/20030903-1.c: Likewise.
- gcc.c-torture/compile/20031125-1.c: Likewise.
- gcc.c-torture/compile/20040101-1.c: Likewise.
- gcc.c-torture/compile/20040317-2.c: Likewise.
- gcc.c-torture/compile/20040726-1.c: Likewise.
- gcc.c-torture/compile/20051216-1.c: Likewise.
- gcc.c-torture/compile/900313-1.c: Likewise.
- gcc.c-torture/compile/920625-1.c: Likewise.
- gcc.c-torture/compile/930421-1.c: Likewise.
- gcc.c-torture/compile/930623-1.c: Likewise.
- gcc.c-torture/compile/961004-1.c: Likewise.
- gcc.c-torture/compile/980504-1.c: Likewise.
- gcc.c-torture/compile/980816-1.c: Likewise.
- gcc.c-torture/compile/990625-1.c: Likewise.
- gcc.c-torture/compile/DFcmp.c: Likewise.
- gcc.c-torture/compile/HIcmp.c: Likewise.
- gcc.c-torture/compile/HIset.c: Likewise.
- gcc.c-torture/compile/QIcmp.c: Likewise.
- gcc.c-torture/compile/QIset.c: Likewise.
- gcc.c-torture/compile/SFset.c: Likewise.
- gcc.c-torture/compile/SIcmp.c: Likewise.
- gcc.c-torture/compile/SIset.c: Likewise.
- gcc.c-torture/compile/UHIcmp.c: Likewise.
- gcc.c-torture/compile/UQIcmp.c: Likewise.
- gcc.c-torture/compile/USIcmp.c: Likewise.
- gcc.c-torture/compile/consec.c: Likewise.
- gcc.c-torture/compile/limits-fndefn.c: Likewise.
- gcc.c-torture/compile/lll.c: Likewise.
- gcc.c-torture/compile/parms.c: Likewise.
- gcc.c-torture/compile/pass.c: Likewise.
- gcc.c-torture/compile/pp.c: Likewise.
- gcc.c-torture/compile/pr32399.c: Likewise.
- gcc.c-torture/compile/pr34091.c: Likewise.
- gcc.c-torture/compile/pr34688.c: Likewise.
- gcc.c-torture/compile/pr37258.c: Likewise.
- gcc.c-torture/compile/pr37327.c: Likewise.
- gcc.c-torture/compile/pr37381.c: Likewise.
- gcc.c-torture/compile/pr37669-2.c: Likewise.
- gcc.c-torture/compile/pr37669.c: Likewise.
- gcc.c-torture/compile/pr37742-3.c: Likewise.
- gcc.c-torture/compile/pr44063.c: Likewise.
- gcc.c-torture/compile/pr48596.c: Likewise.
- gcc.c-torture/compile/pr51856.c: Likewise.
- gcc.c-torture/compile/pr54428.c: Likewise.
- gcc.c-torture/compile/pr54713-1.c: Likewise.
- gcc.c-torture/compile/pr54713-2.c: Likewise.
- gcc.c-torture/compile/pr54713-3.c: Likewise.
- gcc.c-torture/compile/pr55921.c: Likewise.
- gcc.c-torture/compile/pr70240.c: Likewise.
- gcc.c-torture/compile/pr70355.c: Likewise.
- gcc.c-torture/compile/pr82052.c: Likewise.
- gcc.c-torture/compile/pr83487.c: Likewise.
- gcc.c-torture/compile/pr86122.c: Likewise.
- gcc.c-torture/compile/pret-arg.c: Likewise.
- gcc.c-torture/compile/regs-arg-size.c: Likewise.
- gcc.c-torture/compile/structret.c: Likewise.
- gcc.c-torture/compile/uuarg.c: Likewise.
- gcc.dg/20001009-1.c: Likewise.
- gcc.dg/20020418-1.c: Likewise.
- gcc.dg/20020426-2.c: Likewise.
- gcc.dg/20020430-1.c: Likewise.
- gcc.dg/20040306-1.c: Likewise.
- gcc.dg/20040622-2.c: Likewise.
- gcc.dg/20050603-2.c: Likewise.
- gcc.dg/20050629-1.c: Likewise.
- gcc.dg/20061026.c: Likewise.
- gcc.dg/Warray-bounds-3.c: Likewise.
- gcc.dg/Warray-bounds-30.c: Likewise.
- gcc.dg/Wframe-larger-than-2.c: Likewise.
- gcc.dg/Wframe-larger-than.c: Likewise.
- gcc.dg/Wrestrict-11.c: Likewise.
- gcc.c-torture/compile/20000804-1.c: Likewise.
- lib/target-supports.exp (check_effective_target_trampolines): Adapt to eBPF. (check_effective_target_indirect_jumps): Likewise. (check_effective_target_nonlocal_goto): Likewise. (check_effective_target_global_constructor): Likewise. (check_effective_target_return_address): Likewise.
- gcc.target/bpf/bpf.exp: New file.
- gcc.target/bpf/builtin-load.c: Likewise.
- cc.target/bpf/constant-calls.c: Likewise.
- gcc.target/bpf/diag-funargs.c: Likewise.
- gcc.target/bpf/diag-funargs-2.c: Likewise.
- gcc.target/bpf/diag-funargs-3.c: Likewise.
- gcc.target/bpf/diag-indcalls.c: Likewise.
- gcc.target/bpf/helper-bind.c: Likewise.
- gcc.target/bpf/helper-bpf-redirect.c: Likewise.
- gcc.target/bpf/helper-clone-redirect.c: Likewise.
- gcc.target/bpf/helper-csum-diff.c: Likewise.
- gcc.target/bpf/helper-csum-update.c: Likewise.
- gcc.target/bpf/helper-current-task-under-cgroup.c: Likewise.
- gcc.target/bpf/helper-fib-lookup.c: Likewise.
- gcc.target/bpf/helper-get-cgroup-classid.c: Likewise.
- gcc.target/bpf/helper-get-current-cgroup-id.c: Likewise.
- gcc.target/bpf/helper-get-current-comm.c: Likewise.
- gcc.target/bpf/helper-get-current-pid-tgid.c: Likewise.
- gcc.target/bpf/helper-get-current-task.c: Likewise.
- gcc.target/bpf/helper-get-current-uid-gid.c: Likewise.
- gcc.target/bpf/helper-get-hash-recalc.c: Likewise.
- gcc.target/bpf/helper-get-listener-sock.c: Likewise.
- gcc.target/bpf/helper-get-local-storage.c: Likewise.
- gcc.target/bpf/helper-get-numa-node-id.c: Likewise.
- gcc.target/bpf/helper-get-prandom-u32.c: Likewise.
- gcc.target/bpf/helper-get-route-realm.c: Likewise.
- gcc.target/bpf/helper-get-smp-processor-id.c: Likewise.
- gcc.target/bpf/helper-get-socket-cookie.c: Likewise.
- gcc.target/bpf/helper-get-socket-uid.c: Likewise.
- gcc.target/bpf/helper-getsockopt.c: Likewise.
- gcc.target/bpf/helper-get-stack.c: Likewise.
- gcc.target/bpf/helper-get-stackid.c: Likewise.
- gcc.target/bpf/helper-ktime-get-ns.c: Likewise.
- gcc.target/bpf/helper-l3-csum-replace.c: Likewise.
- gcc.target/bpf/helper-l4-csum-replace.c: Likewise.
- gcc.target/bpf/helper-lwt-push-encap.c: Likewise.
- gcc.target/bpf/helper-lwt-seg6-action.c: Likewise.
- gcc.target/bpf/helper-lwt-seg6-adjust-srh.c: Likewise.
- gcc.target/bpf/helper-lwt-seg6-store-bytes.c: Likewise.
- gcc.target/bpf/helper-map-delete-elem.c: Likewise.
- gcc.target/bpf/helper-map-lookup-elem.c: Likewise.
- gcc.target/bpf/helper-map-peek-elem.c: Likewise.
- gcc.target/bpf/helper-map-pop-elem.c: Likewise.
- gcc.target/bpf/helper-map-push-elem.c: Likewise.
- gcc.target/bpf/helper-map-update-elem.c: Likewise.
- gcc.target/bpf/helper-msg-apply-bytes.c: Likewise.
- gcc.target/bpf/helper-msg-cork-bytes.c: Likewise.
- gcc.target/bpf/helper-msg-pop-data.c: Likewise.
- gcc.target/bpf/helper-msg-pull-data.c: Likewise.
- gcc.target/bpf/helper-msg-push-data.c: Likewise.
- gcc.target/bpf/helper-msg-redirect-hash.c: Likewise.
- gcc.target/bpf/helper-msg-redirect-map.c: Likewise.
- gcc.target/bpf/helper-override-return.c: Likewise.
- gcc.target/bpf/helper-perf-event-output.c: Likewise.
- gcc.target/bpf/helper-perf-event-read.c: Likewise.
- gcc.target/bpf/helper-perf-event-read-value.c: Likewise.
- gcc.target/bpf/helper-perf-prog-read-value.c: Likewise.
- gcc.target/bpf/helper-probe-read.c: Likewise.
- gcc.target/bpf/helper-probe-read-str.c: Likewise.
- gcc.target/bpf/helper-probe-write-user.c: Likewise.
- gcc.target/bpf/helper-rc-keydown.c: Likewise.
- gcc.target/bpf/helper-rc-pointer-rel.c: Likewise.
- gcc.target/bpf/helper-rc-repeat.c: Likewise.
- gcc.target/bpf/helper-redirect-map.c: Likewise.
- gcc.target/bpf/helper-set-hash.c: Likewise.
- gcc.target/bpf/helper-set-hash-invalid.c: Likewise.
- gcc.target/bpf/helper-setsockopt.c: Likewise.
- gcc.target/bpf/helper-skb-adjust-room.c: Likewise.
- gcc.target/bpf/helper-skb-cgroup-id.c: Likewise.
- gcc.target/bpf/helper-skb-change-head.c: Likewise.
- gcc.target/bpf/helper-skb-change-proto.c: Likewise.
- gcc.target/bpf/helper-skb-change-tail.c: Likewise.
- gcc.target/bpf/helper-skb-change-type.c: Likewise.
- gcc.target/bpf/helper-skb-ecn-set-ce.c: Likewise.
- gcc.target/bpf/helper-skb-get-tunnel-key.c: Likewise.
- gcc.target/bpf/helper-skb-get-tunnel-opt.c: Likewise.
- gcc.target/bpf/helper-skb-get-xfrm-state.c: Likewise.
- gcc.target/bpf/helper-skb-load-bytes.c: Likewise.
- gcc.target/bpf/helper-skb-load-bytes-relative.c: Likewise.
- gcc.target/bpf/helper-skb-pull-data.c: Likewise.
- gcc.target/bpf/helper-skb-set-tunnel-key.c: Likewise.
- gcc.target/bpf/helper-skb-set-tunnel-opt.c: Likewise.
- gcc.target/bpf/helper-skb-store-bytes.c: Likewise.
- gcc.target/bpf/helper-skb-under-cgroup.c: Likewise.
- gcc.target/bpf/helper-skb-vlan-pop.c: Likewise.
- gcc.target/bpf/helper-skb-vlan-push.c: Likewise.
- gcc.target/bpf/helper-skc-lookup-tcp.c: Likewise.
- gcc.target/bpf/helper-sk-fullsock.c: Likewise.
- gcc.target/bpf/helper-sk-lookup-tcp.c: Likewise.
- gcc.target/bpf/helper-sk-lookup-upd.c: Likewise.
- gcc.target/bpf/helper-sk-redirect-hash.c: Likewise.
- gcc.target/bpf/helper-sk-redirect-map.c: Likewise.
- gcc.target/bpf/helper-sk-release.c: Likewise.
- gcc.target/bpf/helper-sk-select-reuseport.c: Likewise.
- gcc.target/bpf/helper-sk-storage-delete.c: Likewise.
- gcc.target/bpf/helper-sk-storage-get.c: Likewise.
- gcc.target/bpf/helper-sock-hash-update.c: Likewise.
- gcc.target/bpf/helper-sock-map-update.c: Likewise.
- gcc.target/bpf/helper-sock-ops-cb-flags-set.c: Likewise.
- gcc.target/bpf/helper-spin-lock.c: Likewise.
- gcc.target/bpf/helper-spin-unlock.c: Likewise.
- gcc.target/bpf/helper-strtol.c: Likewise.
- gcc.target/bpf/helper-strtoul.c: Likewise.
- gcc.target/bpf/helper-sysctl-get-current-value.c: Likewise.
- gcc.target/bpf/helper-sysctl-get-name.c: Likewise.
- gcc.target/bpf/helper-sysctl-get-new-value.c: Likewise.
- gcc.target/bpf/helper-sysctl-set-new-value.c: Likewise.
- gcc.target/bpf/helper-tail-call.c: Likewise.
- gcc.target/bpf/helper-tcp-check-syncookie.c: Likewise.
- gcc.target/bpf/helper-tcp-sock.c: Likewise.
- gcc.target/bpf/helper-trace-printk.c: Likewise.
- gcc.target/bpf/helper-xdp-adjust-head.c: Likewise.
- gcc.target/bpf/helper-xdp-adjust-meta.c: Likewise.
- gcc.target/bpf/helper-xdp-adjust-tail.c: Likewise.
- gcc.target/bpf/skb-ancestor-cgroup-id.c: Likewise.
- gcc.target/bpf/sync-fetch-and-add.c: Likewise.

libgcc/ChangeLog:

- config.host: Set cpu_type for bpf-*-* targets.
- config/bpf/t-bpf: Likewise.
- config/bpf/crtn.S: Likewise.
- config/bpf/crti.S: New file.

3ec6f8cb4ae GCC port for eBPF
ChangeLog | 10 +
MAINTAINERS | 2 +-
configure | 54 +-
configure.ac | 54 +-
contrib/ChangeLog | 4 +
contrib/config-list.mk | 3 +-
gcc/ChangeLog | 23 +
gcc/common/config/bpf/bpf-common.c | 55 ++
gcc/config.gcc | 9 +
gcc/config/bpf/bpf-helpers.def | 194 +++++
gcc/config/bpf/bpf-helpers.h | 327 +++++++
gcc/config/bpf/bpf-opts.h | 56 ++
gcc/config/bpf/bpf-protos.h | 33 +
gcc/config/bpf/bpf.c | 948 +++++++++++++++++++++
gcc/config/bpf/bpf.h | 539 ++++++++++++
gcc/config/bpf/bpf.md | 497 +++++++++++
gcc/config/bpf/bpf.opt | 123 +++
gcc/config/bpf/constraints.md | 32 +
gcc/config/bpf/predicates.md | 64 ++
gcc/config/bpf/t-bpf | 0
gcc/doc/extend.texi | 171 ++++
gcc/doc/invoke.texi | 37 +
gcc/testsuite/ChangeLog | 215 +++++
gcc/testsuite/gcc.c-torture/compile/20000211-1.c | 2 +
gcc/testsuite/gcc.c-torture/compile/20000403-1.c | 2 +
gcc/testsuite/gcc.c-torture/compile/20000804-1.c | 1 +
gcc/testsuite/gcc.c-torture/compile/20001226-1.c | 1 +
gcc/testsuite/gcc.c-torture/compile/20030903-1.c | 2 +
gcc/testsuite/gcc.c-torture/compile/20031125-1.c | 2 +
gcc/testsuite/gcc.c-torture/compile/20040101-1.c | 1 +
gcc/testsuite/gcc.c-torture/compile/20040317-2.c | 2 +
gcc/testsuite/gcc.c-torture/compile/20040726-1.c | 2 +
gcc/testsuite/gcc.c-torture/compile/20051216-1.c | 1 +
gcc/testsuite/gcc.c-torture/compile/20101217-1.c | 4 +-
gcc/testsuite/gcc.c-torture/compile/900313-1.c | 2 +
gcc/testsuite/gcc.c-torture/compile/920501-7.c | 1 +
gcc/testsuite/gcc.c-torture/compile/920625-1.c | 2 +
gcc/testsuite/gcc.c-torture/compile/930421-1.c | 2 +
gcc/testsuite/gcc.c-torture/compile/930623-1.c | 1 +
gcc/testsuite/gcc.c-torture/compile/961004-1.c | 2 +
gcc/testsuite/gcc.c-torture/compile/980504-1.c | 2 +
gcc/testsuite/gcc.c-torture/compile/980816-1.c | 2 +
gcc/testsuite/gcc.c-torture/compile/990625-1.c | 2 +
gcc/testsuite/gcc.c-torture/compile/DFcmp.c | 2 +
gcc/testsuite/gcc.c-torture/compile/HIcmp.c | 2 +
gcc/testsuite/gcc.c-torture/compile/HIset.c | 2 +
gcc/testsuite/gcc.c-torture/compile/QIcmp.c | 2 +
gcc/testsuite/gcc.c-torture/compile/QIset.c | 2 +
gcc/testsuite/gcc.c-torture/compile/SFset.c | 1 +
gcc/testsuite/gcc.c-torture/compile/SIcmp.c | 2 +
gcc/testsuite/gcc.c-torture/compile/SIset.c | 2 +
gcc/testsuite/gcc.c-torture/compile/UHIcmp.c | 2 +
gcc/testsuite/gcc.c-torture/compile/UQIcmp.c | 2 +
gcc/testsuite/gcc.c-torture/compile/USIcmp.c | 2 +
gcc/testsuite/gcc.c-torture/compile/consec.c | 2 +
.../gcc.c-torture/compile/limits-fndefn.c | 1 +
gcc/testsuite/gcc.c-torture/compile/lll.c | 1 +
gcc/testsuite/gcc.c-torture/compile/parms.c | 1 +
gcc/testsuite/gcc.c-torture/compile/pass.c | 2 +
gcc/testsuite/gcc.c-torture/compile/poor.c | 2 +
gcc/testsuite/gcc.c-torture/compile/pp.c | 2 +
gcc/testsuite/gcc.c-torture/compile/pr25311.c | 1 +
gcc/testsuite/gcc.c-torture/compile/pr32399.c | 2 +
gcc/testsuite/gcc.c-torture/compile/pr34091.c | 2 +
gcc/testsuite/gcc.c-torture/compile/pr34688.c | 2 +
gcc/testsuite/gcc.c-torture/compile/pr37258.c | 2 +
gcc/testsuite/gcc.c-torture/compile/pr37327.c | 2 +
gcc/testsuite/gcc.c-torture/compile/pr37381.c | 2 +
gcc/testsuite/gcc.c-torture/compile/pr37669-2.c | 1 +
gcc/testsuite/gcc.c-torture/compile/pr37669.c | 1 +
gcc/testsuite/gcc.c-torture/compile/pr37742-3.c | 2 +
gcc/testsuite/gcc.c-torture/compile/pr39928-1.c | 2 +
gcc/testsuite/gcc.c-torture/compile/pr44063.c | 2 +
gcc/testsuite/gcc.c-torture/compile/pr48596.c | 2 +
gcc/testsuite/gcc.c-torture/compile/pr51856.c | 2 +
gcc/testsuite/gcc.c-torture/compile/pr54428.c | 1 +
gcc/testsuite/gcc.c-torture/compile/pr54713-1.c | 1 +
gcc/testsuite/gcc.c-torture/compile/pr54713-2.c | 1 +
gcc/testsuite/gcc.c-torture/compile/pr54713-3.c | 1 +
gcc/testsuite/gcc.c-torture/compile/pr55921.c | 1 +
gcc/testsuite/gcc.c-torture/compile/pr70061.c | 2 +
gcc/testsuite/gcc.c-torture/compile/pr70240.c | 2 +
gcc/testsuite/gcc.c-torture/compile/pr70355.c | 2 +
gcc/testsuite/gcc.c-torture/compile/pr82052.c | 2 +
gcc/testsuite/gcc.c-torture/compile/pr83487.c | 1 +
gcc/testsuite/gcc.c-torture/compile/pr86122.c | 1 +
gcc/testsuite/gcc.c-torture/compile/pret-arg.c | 2 +
.../gcc.c-torture/compile/regs-arg-size.c | 2 +
gcc/testsuite/gcc.c-torture/compile/structret.c | 2 +
gcc/testsuite/gcc.c-torture/compile/uuarg.c | 2 +
gcc/testsuite/gcc.dg/20001009-1.c | 1 +
gcc/testsuite/gcc.dg/20020418-1.c | 1 +
gcc/testsuite/gcc.dg/20020426-2.c | 1 +
gcc/testsuite/gcc.dg/20020430-1.c | 1 +
gcc/testsuite/gcc.dg/20040306-1.c | 2 +-
gcc/testsuite/gcc.dg/20040622-2.c | 1 +
gcc/testsuite/gcc.dg/20050603-2.c | 1 +
gcc/testsuite/gcc.dg/20050629-1.c | 1 +
gcc/testsuite/gcc.dg/20061026.c | 1 +
gcc/testsuite/gcc.dg/Warray-bounds-3.c | 1 +
gcc/testsuite/gcc.dg/Warray-bounds-30.c | 3 +-
gcc/testsuite/gcc.dg/Wframe-larger-than-2.c | 3 +-
gcc/testsuite/gcc.dg/Wframe-larger-than.c | 1 +
gcc/testsuite/gcc.dg/Wrestrict-11.c | 3 +-
gcc/testsuite/gcc.dg/builtins-config.h | 4 +-
gcc/testsuite/gcc.target/bpf/bpf.exp | 41 +
gcc/testsuite/gcc.target/bpf/builtin-load.c | 20 +
gcc/testsuite/gcc.target/bpf/constant-calls.c | 20 +
gcc/testsuite/gcc.target/bpf/diag-funargs-2.c | 26 +
gcc/testsuite/gcc.target/bpf/diag-funargs-3.c | 26 +
gcc/testsuite/gcc.target/bpf/diag-funargs.c | 15 +
gcc/testsuite/gcc.target/bpf/diag-indcalls.c | 11 +
gcc/testsuite/gcc.target/bpf/helper-bind.c | 15 +
gcc/testsuite/gcc.target/bpf/helper-bpf-redirect.c | 15 +
.../gcc.target/bpf/helper-clone-redirect.c | 16 +
gcc/testsuite/gcc.target/bpf/helper-csum-diff.c | 16 +
gcc/testsuite/gcc.target/bpf/helper-csum-update.c | 15 +
.../bpf/helper-current-task-under-cgroup.c | 15 +
gcc/testsuite/gcc.target/bpf/helper-fib-lookup.c | 16 +
.../gcc.target/bpf/helper-get-cgroup-classid.c | 14 +
.../gcc.target/bpf/helper-get-current-cgroup-id.c | 13 +
.../gcc.target/bpf/helper-get-current-comm.c | 15 +
.../gcc.target/bpf/helper-get-current-pid-tgid.c | 13 +
.../gcc.target/bpf/helper-get-current-task.c | 13 +
.../gcc.target/bpf/helper-get-current-uid-gid.c | 13 +
.../gcc.target/bpf/helper-get-hash-recalc.c | 14 +
.../gcc.target/bpf/helper-get-listener-sock.c | 13 +
.../gcc.target/bpf/helper-get-local-storage.c | 14 +
.../gcc.target/bpf/helper-get-numa-node-id.c | 13 +
.../gcc.target/bpf/helper-get-prandom-u32.c | 13 +
.../gcc.target/bpf/helper-get-route-realm.c | 14 +
.../gcc.target/bpf/helper-get-smp-processor-id.c | 13 +
.../gcc.target/bpf/helper-get-socket-cookie.c | 14 +
.../gcc.target/bpf/helper-get-socket-uid.c | 14 +
gcc/testsuite/gcc.target/bpf/helper-get-stack.c | 16 +
gcc/testsuite/gcc.target/bpf/helper-get-stackid.c | 15 +
gcc/testsuite/gcc.target/bpf/helper-getsockopt.c | 17 +
gcc/testsuite/gcc.target/bpf/helper-ktime-get-ns.c | 12 +
.../gcc.target/bpf/helper-l3-csum-replace.c | 16 +
.../gcc.target/bpf/helper-l4-csum-replace.c | 16 +
.../gcc.target/bpf/helper-lwt-push-encap.c | 15 +
.../gcc.target/bpf/helper-lwt-seg6-action.c | 16 +
.../gcc.target/bpf/helper-lwt-seg6-adjust-srh.c | 16 +
.../gcc.target/bpf/helper-lwt-seg6-store-bytes.c | 16 +
.../gcc.target/bpf/helper-map-delete-elem.c | 14 +
.../gcc.target/bpf/helper-map-lookup-elem.c | 12 +
.../gcc.target/bpf/helper-map-peek-elem.c | 14 +
gcc/testsuite/gcc.target/bpf/helper-map-pop-elem.c | 14 +
.../gcc.target/bpf/helper-map-push-elem.c | 16 +
.../gcc.target/bpf/helper-map-update-elem.c | 16 +
.../gcc.target/bpf/helper-msg-apply-bytes.c | 15 +
.../gcc.target/bpf/helper-msg-cork-bytes.c | 15 +
gcc/testsuite/gcc.target/bpf/helper-msg-pop-data.c | 16 +
.../gcc.target/bpf/helper-msg-pull-data.c | 16 +
.../gcc.target/bpf/helper-msg-push-data.c | 16 +
.../gcc.target/bpf/helper-msg-redirect-hash.c | 16 +
.../gcc.target/bpf/helper-msg-redirect-map.c | 17 +
.../gcc.target/bpf/helper-override-return.c | 15 +
.../gcc.target/bpf/helper-perf-event-output.c | 17 +
.../gcc.target/bpf/helper-perf-event-read-value.c | 16 +
.../gcc.target/bpf/helper-perf-event-read.c | 15 +
.../gcc.target/bpf/helper-perf-prog-read-value.c | 15 +
.../gcc.target/bpf/helper-probe-read-str.c | 16 +
gcc/testsuite/gcc.target/bpf/helper-probe-read.c | 15 +
.../gcc.target/bpf/helper-probe-write-user.c | 15 +
gcc/testsuite/gcc.target/bpf/helper-rc-keydown.c | 17 +
.../gcc.target/bpf/helper-rc-pointer-rel.c | 15 +
gcc/testsuite/gcc.target/bpf/helper-rc-repeat.c | 14 +
gcc/testsuite/gcc.target/bpf/helper-redirect-map.c | 16 +
.../gcc.target/bpf/helper-set-hash-invalid.c | 13 +
gcc/testsuite/gcc.target/bpf/helper-set-hash.c | 15 +
gcc/testsuite/gcc.target/bpf/helper-setsockopt.c | 19 +
gcc/testsuite/gcc.target/bpf/helper-sk-fullsock.c | 13 +
.../gcc.target/bpf/helper-sk-lookup-tcp.c | 19 +
.../gcc.target/bpf/helper-sk-lookup-upd.c | 19 +
.../gcc.target/bpf/helper-sk-redirect-hash.c | 16 +
.../gcc.target/bpf/helper-sk-redirect-map.c | 16 +
gcc/testsuite/gcc.target/bpf/helper-sk-release.c | 14 +
.../gcc.target/bpf/helper-sk-select-reuseport.c | 16 +
.../gcc.target/bpf/helper-sk-storage-delete.c | 14 +
.../gcc.target/bpf/helper-sk-storage-get.c | 16 +
.../gcc.target/bpf/helper-skb-adjust-room.c | 17 +
.../gcc.target/bpf/helper-skb-cgroup-id.c | 14 +
.../gcc.target/bpf/helper-skb-change-head.c | 16 +
.../gcc.target/bpf/helper-skb-change-proto.c | 16 +
.../gcc.target/bpf/helper-skb-change-tail.c | 16 +
.../gcc.target/bpf/helper-skb-change-type.c | 15 +
.../gcc.target/bpf/helper-skb-ecn-set-ce.c | 14 +
.../gcc.target/bpf/helper-skb-get-tunnel-key.c | 16 +
.../gcc.target/bpf/helper-skb-get-tunnel-opt.c | 16 +
.../gcc.target/bpf/helper-skb-get-xfrm-state.c | 17 +
.../bpf/helper-skb-load-bytes-relative.c | 17 +
.../gcc.target/bpf/helper-skb-load-bytes.c | 15 +
.../gcc.target/bpf/helper-skb-pull-data.c | 15 +
.../gcc.target/bpf/helper-skb-set-tunnel-key.c | 16 +
.../gcc.target/bpf/helper-skb-set-tunnel-opt.c | 16 +
.../gcc.target/bpf/helper-skb-store-bytes.c | 18 +
.../gcc.target/bpf/helper-skb-under-cgroup.c | 15 +
gcc/testsuite/gcc.target/bpf/helper-skb-vlan-pop.c | 14 +
.../gcc.target/bpf/helper-skb-vlan-push.c | 16 +
.../gcc.target/bpf/helper-skc-lookup-tcp.c | 17 +
.../gcc.target/bpf/helper-sock-hash-update.c | 16 +
.../gcc.target/bpf/helper-sock-map-update.c | 16 +
.../gcc.target/bpf/helper-sock-ops-cb-flags-set.c | 16 +
gcc/testsuite/gcc.target/bpf/helper-spin-lock.c | 13 +
gcc/testsuite/gcc.target/bpf/helper-spin-unlock.c | 13 +
gcc/testsuite/gcc.target/bpf/helper-strtol.c | 18 +
gcc/testsuite/gcc.target/bpf/helper-strtoul.c | 18 +
.../bpf/helper-sysctl-get-current-value.c | 17 +
.../gcc.target/bpf/helper-sysctl-get-name.c | 18 +
.../gcc.target/bpf/helper-sysctl-get-new-value.c | 17 +
.../gcc.target/bpf/helper-sysctl-set-new-value.c | 17 +
gcc/testsuite/gcc.target/bpf/helper-tail-call.c | 14 +
.../gcc.target/bpf/helper-tcp-check-syncookie.c | 17 +
gcc/testsuite/gcc.target/bpf/helper-tcp-sock.c | 13 +
gcc/testsuite/gcc.target/bpf/helper-trace-printk.c | 13 +
.../gcc.target/bpf/helper-xdp-adjust-head.c | 15 +
.../gcc.target/bpf/helper-xdp-adjust-meta.c | 15 +
.../gcc.target/bpf/helper-xdp-adjust-tail.c | 15 +
.../gcc.target/bpf/skb-ancestor-cgroup-id.c | 16 +
gcc/testsuite/gcc.target/bpf/sync-fetch-and-add.c | 14 +
gcc/testsuite/lib/target-supports.exp | 18 +-
libgcc/ChangeLog | 7 +
libgcc/config.host | 7 +
libgcc/config/bpf/crti.S | 0
libgcc/config/bpf/crtn.S | 0
libgcc/config/bpf/t-bpf | 23 +
227 files changed, 5454 insertions(+), 17 deletions(-)

Upstream: gcc.gnu.org


  • Share