[clang, llvm] Add __declspec(safebuffers), support it in CodeView
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 31 Aug 2022 21:55:12 +0000 (21:55 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 12 Sep 2022 21:15:34 +0000 (21:15 +0000)
commitab56719acd98778fb2e48fa425ac7c8d27bdea86
tree940b1cb0ac282f1600a50fba2bd6f31e3a0307b6
parent6607fdf7490c5bf73a8892bc08ed2dba55043ca8
[clang, llvm] Add __declspec(safebuffers), support it in CodeView

__declspec(safebuffers) is equivalent to
__attribute__((no_stack_protector)).  This information is recorded in
CodeView.

While we are here, add support for strict_gs_check.
12 files changed:
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td
clang/lib/CodeGen/CodeGenModule.cpp
clang/test/Parser/MicrosoftExtensions.c
llvm/include/llvm/BinaryFormat/COFF.h
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
llvm/lib/Target/X86/X86AsmPrinter.cpp
llvm/test/DebugInfo/COFF/frameproc-flags.ll
llvm/test/DebugInfo/COFF/multifunction.ll
llvm/test/DebugInfo/COFF/simple.ll
llvm/test/DebugInfo/COFF/vframe-fpo.ll