From f6d98429fcdba97988fa1e3ec10dc2ca943dd0da Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Fri, 7 Feb 2020 11:35:14 +0100 Subject: Revert "Support -fstack-clash-protection for x86" This reverts commit 39f50da2a357a8f685b3540246c5d762734e035f. The -fstack-clash-protection is being passed to the linker too, which is not intended. Reverting and fixing that in a later commit. --- clang/lib/Frontend/CompilerInvocation.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'clang/lib/Frontend/CompilerInvocation.cpp') diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 463b265..d1d9a77 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1238,8 +1238,6 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, Opts.NoStackArgProbe = Args.hasArg(OPT_mno_stack_arg_probe); - Opts.StackClashProtector = Args.hasArg(OPT_stack_clash_protection); - if (Arg *A = Args.getLastArg(OPT_fobjc_dispatch_method_EQ)) { StringRef Name = A->getValue(); unsigned Method = llvm::StringSwitch(Name) -- cgit v1.1