[clang] [Clang][RISCV] Support -fcf-protection=return for RISC-V (PR #112477)
Ming-Yi Lai via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 27 19:45:47 PDT 2024
================
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -triple riscv64-linux-unknown -target-feature +zimop -emit-llvm -o - %s -fcf-protection=return | FileCheck %s
+// RUN: %clang_cc1 -triple riscv64-linux-unknown -target-feature +zimop -emit-llvm -o - %s | FileCheck -check-prefix=NOSHADOWSTACK %s
----------------
mylai-mtk wrote:
The triple components are in the wrong order. They should be `riscv{64,32}-unknown-linux-gnu`.
> Configuration names are strings in the canonical form: ARCHITECTURE-VENDOR-OPERATING_SYSTEM or ARCHITECTURE-VENDOR-OPERATING_SYSTEM-ENVIRONMENT
(ref. https://llvm.org/doxygen/classllvm_1_1Triple.html#details)
https://github.com/llvm/llvm-project/pull/112477
More information about the cfe-commits
mailing list