re PR rtl-optimization/87485 (Compile time hog w/ -O2 -fschedule-insns -fno-guess...
authorJakub Jelinek <jakub@redhat.com>
Fri, 29 Mar 2019 11:42:51 +0000 (12:42 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 29 Mar 2019 11:42:51 +0000 (12:42 +0100)
commita6240447c4eb5e683cf439fa2f3cff3773f6d6fb
treef2977d6c6568cfb8342e14782ea3ae4cdf095ae4
parent34f95cbdc5310b9ca88df0a705b615b03b685e65
re PR rtl-optimization/87485 (Compile time hog w/ -O2 -fschedule-insns -fno-guess-branch-probability -fno-isolate-erroneous-paths-dereference -fno-omit-frame-pointer -fno-split-wide-types -fno-tree-ccp -fno-tree-sra)

PR rtl-optimization/87485
* function.c (expand_function_end): Move stack_protect_epilogue
before loading of return value into hard register(s).

* gcc.dg/pr87485.c: New test.

From-SVN: r270013
gcc/ChangeLog
gcc/function.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr87485.c [new file with mode: 0644]