================
@@ -3664,12 +3680,18 @@ static void RenderSSPOptions(const Driver &D, const
ToolChain &TC,
<< A->getOption().getName() << Value;
return;
}
+ if (EffectiveTriple.isRISCV() && (Offset <= -2048 || Offset >= 2048)) {
----------------
topperc wrote:
I don't know a lot about stack protector. Where does this range come from? Is
this trying to be 12-bit signed immediate? If so it should exclude 2048.
https://github.com/llvm/llvm-project/pull/108942
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits