summaryrefslogtreecommitdiff
path: root/gcc/common.opt
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2015-08-19 22:07:06 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2015-08-19 22:07:06 +0000
commit6957b94eb5a2e5d5a908aa28b8b8dd8b709dc1f1 (patch)
tree3ca7ccb634b618bf1984f21463abb0f4d2de83ff /gcc/common.opt
parent6151b7b5b05debc85d8df044951b0893c43a4e0b (diff)
downloadgcc-6957b94eb5a2e5d5a908aa28b8b8dd8b709dc1f1.tar.gz
* common.opt (fstack-protector): Initialize to -1.
(fstack-protector-all): Likewise. (fstack-protector-strong): Likewise. (fstack-protector-explicit): Likewise. * configure.ac: Add --enable-default-ssp. * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong. * opts.c (finish_options): Update opts->x_flag_stack_protect if it is -1. * doc/install.texi: Document --enable-default-ssp. * config.in: Regenerated. * configure: Likewise. * lib/target-supports.exp (check_effective_target_fstack_protector_enabled): New test. * gcc.target/i386/ssp-default.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227017 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/common.opt')
-rw-r--r--gcc/common.opt6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/common.opt b/gcc/common.opt
index dd59ff337e6..4dcd51807af 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -2124,15 +2124,15 @@ Common RejectNegative Joined Var(common_deferred_options) Defer
-fstack-limit-symbol=<name> Trap if the stack goes past symbol <name>
fstack-protector
-Common Report Var(flag_stack_protect, 1)
+Common Report Var(flag_stack_protect, 1) Init(-1)
Use propolice as a stack protection method
fstack-protector-all
-Common Report RejectNegative Var(flag_stack_protect, 2)
+Common Report RejectNegative Var(flag_stack_protect, 2) Init(-1)
Use a stack protection method for every function
fstack-protector-strong
-Common Report RejectNegative Var(flag_stack_protect, 3)
+Common Report RejectNegative Var(flag_stack_protect, 3) Init(-1)
Use a smart stack protection method for certain functions
fstack-protector-explicit