[Bug target/123556] xdp-tools fails tests for bpf (access beyond struct (anon) at off 2 size 8)
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 9 19:51:01 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123556
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by David Faust <dfaust@gcc.gnu.org>:
https://gcc.gnu.org/g:d9ffd785f6eb8de3564189b74355c575479985e8
commit r16-7417-gd9ffd785f6eb8de3564189b74355c575479985e8
Author: David Faust <david.faust@oracle.com>
Date: Wed Feb 4 12:13:45 2026 -0800
bpf: set SLOW_BYTE_ACCESS to 0 [PR123556]
In general, BPF programs are JIT-ed to various architectures, and we
cannot say for certain what memory access patterns are preferable.
But it is clear that for the sake of the BPF verifier smaller loads are
to be preferred when possible, so set SLOW_BYTE_ACCESS to zero.
Tested on x86_64-linux-gnu host for bpf-unknown-none, no regressions.
Also tested against Linux kernel bpf-next selftests, no changes.
PR target/123556
gcc/
* config/bpf/bpf.h (SLOW_BYTE_ACCESS): Set to 0, update comment.
gcc/testsuite/
* gcc.target/bpf/pr123556.c: New test.
More information about the Gcc-bugs
mailing list