llvm-project/clang/lib
Manoj Gupta 4fbf84c173 [Clang] Implement function attribute no_stack_protector.
Summary:
This attribute tells clang to skip this function from stack protector
when -stack-protector option is passed.
GCC option for this is:
__attribute__((__optimize__("no-stack-protector"))) and the
equivalent clang syntax would be: __attribute__((no_stack_protector))

This is used in Linux kernel to selectively disable stack protector
in certain functions.

Reviewers: aaron.ballman, rsmith, rnk, probinson

Reviewed By: aaron.ballman

Subscribers: probinson, srhines, cfe-commits

Differential Revision: https://reviews.llvm.org/D46300

llvm-svn: 331925
2018-05-09 21:41:18 +00:00
..
ARCMigrate Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
AST [OpenCL] Add constant address space to __func__ in AST. 2018-05-09 13:23:26 +00:00
ASTMatchers Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
Analysis Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
Basic Add SourceManagerForFile helper which sets up SourceManager and dependencies for a single file with code snippet 2018-05-09 21:35:52 +00:00
CodeGen [Clang] Implement function attribute no_stack_protector. 2018-05-09 21:41:18 +00:00
CrossTU [CrossTU] Fix handling of Cross Translation Unit directory path 2017-10-27 12:53:37 +00:00
Driver Revert "[Driver] Use -fuse-line-directives by default in MSVC mode" 2018-05-09 09:11:01 +00:00
Edit Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
Format Add SourceManagerForFile helper which sets up SourceManager and dependencies for a single file with code snippet 2018-05-09 21:35:52 +00:00
Frontend [clang] Adding CharacteristicKind to PPCallbacks::InclusionDirective 2018-05-09 18:27:33 +00:00
FrontendTool Make a build bot happy. 2018-02-10 14:26:53 +00:00
Headers Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
Index Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
Lex [clang] Adding CharacteristicKind to PPCallbacks::InclusionDirective 2018-05-09 18:27:33 +00:00
Parse [OpenCL] Restrict various keywords in OpenCL C++ mode 2018-05-09 13:16:17 +00:00
Rewrite Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
Sema [Clang] Implement function attribute no_stack_protector. 2018-05-09 21:41:18 +00:00
Serialization Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
StaticAnalyzer Fixes issue introduced by r331556. 2018-05-09 12:27:21 +00:00
Tooling Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00