aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.cc
diff options
context:
space:
mode:
authorJose E. Marchesi <jose.marchesi@oracle.com>2024-01-27 20:08:12 +0100
committerJose E. Marchesi <jose.marchesi@oracle.com>2024-01-27 20:08:12 +0100
commitf64448f4ff1c671778a1d7d7678a281c6bc6450e (patch)
treeb6d9d7ef8bf372922c300340237a04db0d60e3f9 /gcc/tree.cc
parentce61de1b8a1bb3a22118e900376f380768f2ba59 (diff)
downloadgcc-f64448f4ff1c671778a1d7d7678a281c6bc6450e.zip
gcc-f64448f4ff1c671778a1d7d7678a281c6bc6450e.tar.gz
gcc-f64448f4ff1c671778a1d7d7678a281c6bc6450e.tar.bz2
bpf: add constant pointer to helper-skb-ancestor-cgroup-id.c test
The purpose of this test is to make sure that constant propagation is achieved with the proper optimization level, so a BPF call instruction to a kernel helper is generated. This patch updates the patch so it also covers kernel helpers defined with constant static pointers. The motivation for this patch is: https://lore.kernel.org/bpf/20240127185031.29854-1-jose.marchesi@oracle.com/T/#u Tested in bpf-unknown-none target x86_64-linux-gnu host. gcc/testsuite/ChangeLog * gcc.target/bpf/helper-skb-ancestor-cgroup-id.c: Add constant version of kernel helper static pointer.
Diffstat (limited to 'gcc/tree.cc')
0 files changed, 0 insertions, 0 deletions