llvm-project
c28d6c2f - [Clang][RISCV] Add Zicfilp CFI unlabeled scheme preprocessor macros (#109600)

Commit
210 days ago
[Clang][RISCV] Add Zicfilp CFI unlabeled scheme preprocessor macros (#109600) This patch adds preprocessor macros when Zicfilp CFI is enabled. To be specific: + `#define __riscv_landing_pad 1` when `-fcf-protection=[full|branch]` + `#define __riscv_landing_pad_unlabeled 1` when `-fcf-protection=[full|branch] -mcf-branch-label-scheme=unlabeled` The macros are proposed in riscv-non-isa/riscv-c-api-doc#76 , and the CLI flags are from riscv-non-isa/riscv-toolchain-conventions#54.
Author
Parents
Loading