re PR rtl-optimization/87466 (IRA and LRA spill all pseudos that are live across...
authorPeter Bergner <bergner@gcc.gnu.org>
Thu, 4 Oct 2018 13:36:20 +0000 (08:36 -0500)
committerPeter Bergner <bergner@gcc.gnu.org>
Thu, 4 Oct 2018 13:36:20 +0000 (08:36 -0500)
commit82957a739c9ed37cc78d3cabfc61d04549e65867
treec6391a013b017f1777208b69af63b59bb49804f7
parentac712e4eb43f3dd8d7f12624ea4014ecb2a9cf34
re PR rtl-optimization/87466 (IRA and LRA spill all pseudos that are live across setjmp calls)

gcc/
PR rtl-optimization/87466
* target.def (setjmp_preserves_nonvolatile_regs_p): New target hook.
* doc/tm.texi.in (TARGET_SETJMP_PRESERVES_NONVOLATILE_REGS_P): New hook.
* doc/tm.texi: Regenerate.
* ira-lives.c (process_bb_node_lives): Use the new target hook.
* lra-lives.c (process_bb_lives): Likewise.
* config/rs6000/rs6000.c (TARGET_SETJMP_PRESERVES_NONVOLATILE_REGS_P):
Define.

gcc/testsuite/
PR rtl-optimization/87466
* gcc.target/powerpc/pr87466.c: New test.

From-SVN: r264842
gcc/config/rs6000/rs6000.c
gcc/doc/tm.texi
gcc/doc/tm.texi.in
gcc/ira-lives.c
gcc/lra-lives.c
gcc/target.def
gcc/testsuite/gcc.target/powerpc/pr87466.c [new file with mode: 0644]