-fstack-clash-protection: Return an actual error when used on unsupported OS
authorSylvestre Ledru <sylvestre@debian.org>
Mon, 30 Nov 2020 17:29:55 +0000 (18:29 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 22 Dec 2020 11:06:08 +0000 (12:06 +0100)
commit4d59c8fdb955ea0d668b854f467e12bce05a8857
tree508e092c800be62ba925ad1173d7965e403f7765
parent6fcb039956483988fa4b82a9a3944084353d00a5
-fstack-clash-protection: Return an actual error when used on unsupported OS

$ clang-12: error: -fstack-clash-protection is not supported on Windows or Mac OS X

Differential Revision: https://reviews.llvm.org/D92245
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/lib/Driver/ToolChains/Clang.cpp
llvm/test/CodeGen/X86/stack-clash-large.ll