PR target/79890: S/390: Fix crash.
authorDominik Vogt <vogt@linux.vnet.ibm.com>
Wed, 5 Apr 2017 08:28:18 +0000 (08:28 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Wed, 5 Apr 2017 08:28:18 +0000 (08:28 +0000)
commitd0ee17a526119f45b7f2a593fa54c82dfffe5629
tree681050570a7afb224418ef45c293b79c3d1c5fc7
parentb88a6a88183a6cf44721881fe81a8f5c731bce4f
PR target/79890: S/390: Fix crash.

builtin_eh_return requires the return address to be saved on the
stack.  The patch prevents using an FPR for that.

gcc/ChangeLog:

2017-04-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>

PR target/79890
* config/s390/s390.c (s390_register_info_gprtofpr): Return if
call_eh_return is true.

gcc/testsuite/ChangeLog:

2017-04-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>

PR target/79890
* gcc.target/s390/pr79890.c: New test case.

From-SVN: r246701
gcc/ChangeLog
gcc/config/s390/s390.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/pr79890.c [new file with mode: 0644]