bpf: define __bpf__ as well as __BPF__ as a target macro
authorJose E. Marchesi <jose.marchesi@oracle.com>
Mon, 29 Aug 2022 20:13:11 +0000 (22:13 +0200)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Mon, 29 Aug 2022 20:13:11 +0000 (22:13 +0200)
commitc68b5c078bbf167e6ab84fc230a53580dcc651db
treed4b58e6d2108694bea063bc1c69b8e61ccf00366
parent60d1d296b42b22b08d4eaa38bea02100c07261ac
bpf: define __bpf__ as well as __BPF__ as a target macro

LLVM defines both __bpf__ and __BPF_ as target macros.
GCC was defining only __BPF__.

This patch defines __bpf__ as a target macro for BPF.
Tested in bpf-unknown-none.

gcc/ChangeLog:

* config/bpf/bpf.cc (bpf_target_macros): Define __bpf__ as a
target macro.
gcc/config/bpf/bpf.cc