re PR target/81708 (The x86 stack canary location should be customizable)
authorUros Bizjak <uros@gcc.gnu.org>
Tue, 8 Aug 2017 16:48:46 +0000 (18:48 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 8 Aug 2017 16:48:46 +0000 (18:48 +0200)
commitd5bf81b30f7d3faf58d52784013749ca0f9f980f
treeb5449885acc699eefc6d35b3d55189c4e773106b
parent7d27b70bd861d6b83a6821e3fb4205e19a365310
re PR target/81708 (The x86 stack canary location should be customizable)

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.

From-SVN: r250965
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]