https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81708
--- Comment #13 from Aldy Hernandez <aldyh at gcc dot gnu.org> --- Author: aldyh Date: Wed Sep 13 16:41:28 2017 New Revision: 252350 URL: https://gcc.gnu.org/viewcvs?rev=252350&root=gcc&view=rev Log: 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. Added: branches/range-gen2/gcc/testsuite/gcc.target/i386/stack-prot-guard.c Modified: branches/range-gen2/gcc/ChangeLog branches/range-gen2/gcc/config/i386/i386.c branches/range-gen2/gcc/config/i386/i386.opt branches/range-gen2/gcc/doc/invoke.texi branches/range-gen2/gcc/testsuite/ChangeLog