]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR rtl-optimization/88796
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Jan 2019 12:01:01 +0000 (12:01 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Jan 2019 12:01:01 +0000 (12:01 +0000)
commitc7a7ba467de6184f3d897b8fc3139147abd8ad7a
tree5d19df5d6e01eac1ed1c0504b50a318c3e91f688
parentd8b18ebe75bdf60b1f902887ea1772ad1e016aa3
PR rtl-optimization/88796
* emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
* cfgexpand.c (stack_protect_prologue): Initialize
crtl->stack_protect_guard_decl.
* function.c (stack_protect_epilogue): Use it instead of calling
targetm.stack_protect_guard again.
* dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
crtl->stack_protect_guard_decl.
* config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
on the returned MEM_EXPR.

* gcc.target/i386/pr88796.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267916 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cfgexpand.c
gcc/config/i386/i386.c
gcc/dse.c
gcc/emit-rtl.h
gcc/function.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr88796.c [new file with mode: 0644]