re PR target/81708 (The x86 stack canary location should be customizable)
authorUros Bizjak <ubizjak@gmail.com>
Thu, 10 Aug 2017 20:59:10 +0000 (22:59 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 10 Aug 2017 20:59:10 +0000 (22:59 +0200)
commite1769bdd4cef522ada32aec863feba41116b183a
treebfa44ea06ab428cb984cd7189bf283a48a7726bf
parentf18f68226c2abb77008da7bd0aef5d7ee905c4c6
re PR target/81708 (The x86 stack canary location should be customizable)

PR target/81708
* config/i386/i386.opt (mstack-protector-guard-symbol=): New option
* config/i386/i386.c (ix86_stack_protect_guard): Use
ix86_stack_protect_guard_symbol_str to generate varible declaration.
* doc/invoke.texi (x86 Options): Document
-mstack-protector-guard-symbol= option.

testsuite/ChangeLog:

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

From-SVN: r251040
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-sym.c [new file with mode: 0644]