rs6000.c (rs6000_set_up_by_prologue): Make sure the TOC reg (r2) isn't in the set...
authorPat Haugen <pthaugen@us.ibm.com>
Thu, 14 Sep 2017 18:29:44 +0000 (18:29 +0000)
committerPat Haugen <pthaugen@gcc.gnu.org>
Thu, 14 Sep 2017 18:29:44 +0000 (18:29 +0000)
commit44e13e607f63ef73c75cd64b041f24b0eeafd992
tree19b2d65af1c02d3ff136cf98414c82940da1f8b1
parentbc998d034f45d1828a8663b2eed928faf22a7d01
rs6000.c (rs6000_set_up_by_prologue): Make sure the TOC reg (r2) isn't in the set of registers defined in the prologue.

* config/rs6000/rs6000.c (rs6000_set_up_by_prologue): Make sure the TOC
reg (r2) isn't in the set of registers defined in the prologue.

* gcc.target/powerpc/r2_shrink-wrap.c: New.

From-SVN: r252768
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/r2_shrink-wrap.c [new file with mode: 0644]