[clang] [llvm] riscv: Support -mstack-protector-guard=tls (PR #108942)
    Alexander Richardson via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Fri Sep 20 14:10:21 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") {
----------------
arichardson wrote:
Fair enough - this code code do we a bit of refactoring to remove duplication but that doesn't need to be part of this change.
https://github.com/llvm/llvm-project/pull/108942
    
    
More information about the llvm-commits
mailing list