diff options
author | shenhan <shenhan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-07 21:33:01 +0000 |
---|---|---|
committer | shenhan <shenhan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-07 21:33:01 +0000 |
commit | b156ec373ccf27f4fcce7972de5e043d35acea43 (patch) | |
tree | 6334fbdf8bc242f31e69b43f0b15f26ac842169e /gcc/common.opt | |
parent | c50ff294f77295d98662af55db383e38dfce5a55 (diff) | |
download | gcc-b156ec373ccf27f4fcce7972de5e043d35acea43.tar.gz |
2013-05-07 Han Shen <shenhan@google.com>
gcc/
* cfgexpand.c (record_or_union_type_has_array_p): New function.
(expand_used_vars): Add logic handling '-fstack-protector-strong'.
* common.opt (fstack-protector-strong): New option.
* doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
* doc/invoke.texi (Optimization Options): Document
"-fstack-protector-strong".
* gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
gcc/testsuite/
* gcc.dg/fstack-protector-strong.c: New.
* g++.dg/fstack-protector-strong.C: New.
gcc/c-family/
* c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198699 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/common.opt')
-rw-r--r-- | gcc/common.opt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index 350bf973f76..4c7933e587c 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -1942,6 +1942,10 @@ fstack-protector-all Common Report RejectNegative Var(flag_stack_protect, 2) Use a stack protection method for every function +fstack-protector-strong +Common Report RejectNegative Var(flag_stack_protect, 3) +Use a smart stack protection method for certain functions + fstack-usage Common RejectNegative Var(flag_stack_usage) Output stack usage information on a per-function basis |