[clang] [llvm] riscv: Support -mstack-protector-guard=tls (PR #108942)
Keith Packard via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 23 11:38:40 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:
Added a test to make sure -mstack-protector-guard=global still works correctly after the patch. Also added positive tests to make sure valid driver arguments get passed through to the backend.
https://github.com/llvm/llvm-project/pull/108942
More information about the llvm-commits
mailing list