diff options
author | Andreas Krebbel <krebbel@linux.ibm.com> | 2020-10-27 20:57:39 +0100 |
---|---|---|
committer | Andreas Krebbel <krebbel@linux.ibm.com> | 2020-10-27 21:01:26 +0100 |
commit | 2b3e722a3ca1b9dcfff1c016e651d0d681de1af0 (patch) | |
tree | 8d53373084046f89e9d9ad197f17d28198525265 /libgo/go/cmd | |
parent | a764c40079a493826a3678174f908941a383644e (diff) | |
download | gcc-2b3e722a3ca1b9dcfff1c016e651d0d681de1af0.zip gcc-2b3e722a3ca1b9dcfff1c016e651d0d681de1af0.tar.gz gcc-2b3e722a3ca1b9dcfff1c016e651d0d681de1af0.tar.bz2 |
Fix PR97497
This works around a limitation of gcse with handling of partially
clobbered registers. With this patch our GOT pointer register r12 is
not marked as partially clobbered anymore for the -m31 -mzarch -fpic
combination. This is correct since all the bits in r12 we actually
care about are in fact preserved.
gcc/ChangeLog:
PR rtl-optimization/97497
* config/s390/s390.c (s390_hard_regno_call_part_clobbered): Do not
return true for r12 when -fpic is used.
gcc/testsuite/ChangeLog:
* gcc.target/s390/pr97497.c: New test.
Diffstat (limited to 'libgo/go/cmd')
0 files changed, 0 insertions, 0 deletions