[clang] [llvm] riscv: Support -mstack-protector-guard=tls (PR #108942)
Keith Packard via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 22 17:51:04 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:
Yes, that's the existing non-TLS version which uses `__stack_chk_guard`. It's the default mode. I could add a test to make sure it still works?
https://github.com/llvm/llvm-project/pull/108942
More information about the cfe-commits
mailing list