[clang] [llvm] riscv: Support -mstack-protector-guard=tls (PR #108942)

Keith Packard via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 19 13:05:28 PDT 2024


================
@@ -3644,13 +3645,28 @@ static void RenderSSPOptions(const Driver &D, const ToolChain &TC,
           << A->getOption().getName() << Value << "sysreg global";
       return;
     }
+    if (EffectiveTriple.isRISCV()) {
+      if (Value != "tls" && Value != "global") {
----------------
keith-packard wrote:

Yeah, I went for the easiest-to-review mechanism that just created new RISC-V specific clauses instead of attempting to mix them into the existing ones. It's not exactly a performance-critical area of code.

https://github.com/llvm/llvm-project/pull/108942


More information about the cfe-commits mailing list