diff options
author | Cupertino Miranda <cupertino.miranda@oracle.com> | 2023-07-17 17:42:42 +0100 |
---|---|---|
committer | Cupertino Miranda <cupertino.miranda@oracle.com> | 2023-07-21 19:56:36 +0100 |
commit | 77d0f9ec3809b4d2e32c36069b6b9239d301c030 (patch) | |
tree | 59e4533c37a329c419887629bdfdeeba5a71ddce /libssp | |
parent | 13ed106723c7c01cddd769b0bac14c81399e6b40 (diff) | |
download | gcc-77d0f9ec3809b4d2e32c36069b6b9239d301c030.zip gcc-77d0f9ec3809b4d2e32c36069b6b9239d301c030.tar.gz gcc-77d0f9ec3809b4d2e32c36069b6b9239d301c030.tar.bz2 |
bpf: pseudo-c assembly dialect support
New pseudo-c BPF assembly dialect already supported by clang and widely
used in the linux kernel.
gcc/ChangeLog:
PR target/110770
* config/bpf/bpf.opt: Added option -masm=<dialect>.
* config/bpf/bpf-opts.h (enum bpf_asm_dialect): New type.
* config/bpf/bpf.cc (bpf_print_register): New function.
(bpf_print_register): Support pseudo-c syntax for registers.
(bpf_print_operand_address): Likewise.
* config/bpf/bpf.h (ASM_SPEC): handle -msasm.
(ASSEMBLER_DIALECT): Define.
* config/bpf/bpf.md: Added pseudo-c templates.
* doc/invoke.texi (-masm=): New eBPF option item.
Diffstat (limited to 'libssp')
0 files changed, 0 insertions, 0 deletions