aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vect-loop-manip.cc
diff options
context:
space:
mode:
authorJose E. Marchesi <jose.marchesi@oracle.com>2024-01-29 17:47:00 +0100
committerJose E. Marchesi <jose.marchesi@oracle.com>2024-01-29 18:51:45 +0100
commit1959aeee1e0e0b5eca12178444ba2f28c0ae558f (patch)
tree8034dba31a0778c30910d079d4d6be4def3a2607 /gcc/tree-vect-loop-manip.cc
parent25cd22bf02d55d0778ee7b883eb698204a120a16 (diff)
downloadgcc-1959aeee1e0e0b5eca12178444ba2f28c0ae558f.zip
gcc-1959aeee1e0e0b5eca12178444ba2f28c0ae558f.tar.gz
gcc-1959aeee1e0e0b5eca12178444ba2f28c0ae558f.tar.bz2
bpf: emit empty epilogues in naked functions
This patch fixes the BPF backend to not generate `exit' (return) instructions in epilogues of functions that are declared as naked via the corresponding compiler attribute. Having extra exit instructions upsets the kernel BPF verifier. Tested in bpf-unknown-none target in x86_64-linux-gnu host. gcc/ChangeLog * config/bpf/bpf.cc (bpf_expand_epilogue): Do not emit a return instruction in naked function epilogues. gcc/testsuite/ChangeLog * gcc.target/bpf/naked-1.c: Update test to not expect an exit instruction in naked function. * gcc.target/bpf/naked-2.c: New test.
Diffstat (limited to 'gcc/tree-vect-loop-manip.cc')
0 files changed, 0 insertions, 0 deletions