re PR target/92841 (Optimize -fstack-protector-strong code generation a bit)
authorJakub Jelinek <jakub@redhat.com>
Fri, 20 Dec 2019 08:23:42 +0000 (09:23 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 20 Dec 2019 08:23:42 +0000 (09:23 +0100)
commit3439487f01f3e563c7521b4cc86409fb9797f990
treebc4059261cfd3ca4ebf80ef5ba59e9f60804cd68
parent99675d5c4581c5ac01118ab64785fde1f7f25183
re PR target/92841 (Optimize -fstack-protector-strong code generation a bit)

PR target/92841
* config/i386/i386.md (*stack_protect_set_3): For pic_32bit_operand
always use lea{q}, no matter what value which_alternative has.

* gcc.target/i386/pr92841-2.c: New test.

From-SVN: r279633
gcc/ChangeLog
gcc/config/i386/i386.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr92841-2.c [new file with mode: 0644]