This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r269910 - in /branches/gcc-8-branch/gcc: Change...
- From: krebbel at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 25 Mar 2019 10:18:57 -0000
- Subject: r269910 - in /branches/gcc-8-branch/gcc: Change...
Author: krebbel
Date: Mon Mar 25 10:18:57 2019
New Revision: 269910
URL: https://gcc.gnu.org/viewcvs?rev=269910&root=gcc&view=rev
Log:
S/390: Fix PR89775. Stackpointer save/restore instructions removed
Even if a global register is being clobbered in a function we usually
do not save and restore it. However, we still have to do this if it is
a special register. Most of the places in the backend handle this
correctly but not the prologue/epilogue optimization.
gcc/ChangeLog:
2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
Backport from mainline
2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
PR target/89775
* config/s390/s390.c (global_not_special_regno_p): Move to make it
available to ...
(s390_optimize_register_info): Use global_not_special_regno_p to
check for global regs.
2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
Backport from mainline
2019-03-20 Jakub Jelinek <jakub@redhat.com>
PR target/89775
* gcc.target/s390/pr89775-1.c: New test.
* gcc.target/s390/pr89775-2.c: New test.
Added:
branches/gcc-8-branch/gcc/testsuite/gcc.target/s390/pr89775-1.c
branches/gcc-8-branch/gcc/testsuite/gcc.target/s390/pr89775-2.c
Modified:
branches/gcc-8-branch/gcc/ChangeLog
branches/gcc-8-branch/gcc/config/s390/s390.c
branches/gcc-8-branch/gcc/testsuite/ChangeLog