[all-commits] [llvm/llvm-project] 2fdb26: [clang][RISCV] Introduce preprocessor macro when Z...

Ming-Yi Lai via All-commits all-commits at lists.llvm.org
Tue Feb 18 01:27:43 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2fdb26da619cd09e3ccc8d154e48eb0034474823
      https://github.com/llvm/llvm-project/commit/2fdb26da619cd09e3ccc8d154e48eb0034474823
  Author: Ming-Yi Lai <ming-yi.lai at mediatek.com>
  Date:   2025-02-18 (Tue, 18 Feb 2025)

  Changed paths:
    M clang/include/clang/Basic/LangOptions.def
    M clang/lib/Basic/Targets/RISCV.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    A clang/test/Preprocessor/riscv-cf-protection-return.c

  Log Message:
  -----------
  [clang][RISCV] Introduce preprocessor macro when Zicfiss-based shadow stack is enabled (#127592)

The `-fcf-protection=[full|return]` flag enables shadow stack
implementation based on RISC-V Zicfiss extension. This patch adds the
`__riscv_shadow_stack` predefined macro to preprocessing when such a
shadow stack implementation is enabled.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list