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/CodeGen/CodeGenModule.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 235a40501afc..4e730025ac4f 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -1514,9 +1514,6 @@ void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D, if (CodeGenOpts.UnwindTables) B.addAttribute(llvm::Attribute::UWTable); - if (CodeGenOpts.StackClashProtector) - B.addAttribute("probe-stack", "inline-asm"); - if (!hasUnwindExceptions(LangOpts)) B.addAttribute(llvm::Attribute::NoUnwind); -- cgit v1.2.3