ports/lang/flang/driver/patches/patch-lib_Frontend_CompilerInvocation_cpp

13 lines
461 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: lib/Frontend/CompilerInvocation.cpp
--- lib/Frontend/CompilerInvocation.cpp.orig
+++ lib/Frontend/CompilerInvocation.cpp
@@ -1137,6 +1137,8 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, Arg
Opts.StackAlignment = StackAlignment;
}
+ Opts.ReturnProtector = Args.hasArg(OPT_ret_protector);
+
if (Arg *A = Args.getLastArg(OPT_mstack_probe_size)) {
StringRef Val = A->getValue();
unsigned StackProbeSize = Opts.StackProbeSize;