diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-04-15 10:03:48 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-04-15 10:03:48 +0000 |
commit | 98c0d6572c62b325c1e8635df3d6b22003b83619 (patch) | |
tree | ad462b31e486f9859c8d9438bf69a6ce4b33cb6e /gcc/config/i386/i386-opts.h | |
parent | 68cc384ef412d9b7141bba53a7c3291fbacd4167 (diff) | |
download | gcc-98c0d6572c62b325c1e8635df3d6b22003b83619.tar.gz |
* config/i386/i386.opt: New option mstack-protector-guard=.
* config/i386/i386-opts.h: Add enum stack_protector_guard.
* config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
TARGET_SSP_TLS_GUARD.
* config/i386/i386.c (ix86_option_override_internal): Set
ix86_stack_protector_guard.
* config/i386/i386.md (stack_protect_set): Enable for
TARGET_SSP_TLS_GUARD only.
(stack_protect_set_<mode>): Ditto.
(stack_protect_test): Ditto.
(stack_protect_test_<mode>): Ditto.
* doc/invoke.texi (i386 Option): Document.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@197963 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386/i386-opts.h')
-rw-r--r-- | gcc/config/i386/i386-opts.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/i386/i386-opts.h b/gcc/config/i386/i386-opts.h index 11c08457db3..61f04ced53b 100644 --- a/gcc/config/i386/i386-opts.h +++ b/gcc/config/i386/i386-opts.h @@ -85,4 +85,9 @@ enum ix86_veclibabi { ix86_veclibabi_type_acml }; +enum stack_protector_guard { + SSP_TLS, /* per-thread canary in TLS block */ + SSP_GLOBAL /* global canary */ +}; + #endif |