PR target/81708
commit17443aa35e6933b80e62ea2fd083548272d441b4
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Aug 2017 16:48:46 +0000 (8 16:48 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Aug 2017 16:48:46 +0000 (8 16:48 +0000)
treeb5449885acc699eefc6d35b3d55189c4e773106b
parentf788eee305721f9e7264448d92fb58bf3239ba08
PR target/81708
* config/i386/i386.opt (mstack-protector-guard-reg=): New option
(mstack-protector-guard-offset=): Ditto.
* config/i386/i386.c (ix86_option_override): Handle
-mstack-protector-guard-reg= and -mstack-protector-guard-offset=
options.
(ix86_stack_protect_guard): Use ix86_stack_protect_guard_reg and
ix86_stack_protect_guard_offset variables.
(TARGET_STACK_PROTECT_GUARD): Always define.
* doc/invoke.texi (x86 Options): Document -mstack-protector-guard-reg=
and -mstack-protector-guard-offset= options.

testsuite/ChangeLog:

PR target/81708
* gcc.target/i386/stack-prot-guard.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250965 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/stack-prot-guard.c [new file with mode: 0644]