[clang] [llvm] riscv: Support -mstack-protector-guard=tls (PR #108942)
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 19 14:52:27 PDT 2024
================
@@ -3681,6 +3698,11 @@ static void RenderSSPOptions(const Driver &D, const ToolChain &TC,
D.Diag(diag::err_drv_invalid_value) << A->getOption().getName() << Value;
return;
}
+ if (EffectiveTriple.isRISCV() && Value != "tp") {
+ D.Diag(diag::err_drv_invalid_value_with_suggestion)
----------------
topperc wrote:
Is there a test for this error?
https://github.com/llvm/llvm-project/pull/108942
More information about the cfe-commits
mailing list