[stackprotector] Add command line option -fstack-protector-strong
authorJosh Magee <joshua_magee@playstation.sony.com>
Tue, 11 Feb 2014 01:35:14 +0000 (01:35 +0000)
committerJosh Magee <joshua_magee@playstation.sony.com>
Tue, 11 Feb 2014 01:35:14 +0000 (01:35 +0000)
commite0fc1a80cba8b91e3943f3287e7dcf68c6bb9b7f
tree93c65c12a462c05648e3fef2b32203a7e13f4ff8
parenta47009dbd3085dab76d95280a8327a0c987c03d1
[stackprotector] Add command line option -fstack-protector-strong

This option has the following effects:
 * It adds the sspstrong IR attribute to each function within the CU.
 * It defines the macro __SSP_STRONG__ with the value of 2.

Differential Revision: http://llvm-reviews.chandlerc.com/D2717

llvm-svn: 201120
clang/include/clang/Basic/LangOptions.h
clang/include/clang/Driver/Options.td
clang/include/clang/Driver/ToolChain.h
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/Driver/Tools.cpp
clang/lib/Frontend/CompilerInvocation.cpp
clang/lib/Frontend/InitPreprocessor.cpp
clang/test/CodeGen/stack-protector.c
clang/test/Driver/stack-protector.c