diff options
author | Lulu Cheng <chenglulu@loongson.cn> | 2023-06-29 19:30:59 +0800 |
---|---|---|
committer | Lulu Cheng <chenglulu@loongson.cn> | 2023-09-01 10:04:21 +0800 |
commit | 1967f21d000e09d3d3190317af7923b578ce02b1 (patch) | |
tree | 90c00df22eb6bfcd76b6314f7bc306e9bcd30ff0 /gcc/analyzer | |
parent | 65c36eccb89447c6d0c8e6aff7ced4092dd5d359 (diff) | |
download | gcc-1967f21d000e09d3d3190317af7923b578ce02b1.zip gcc-1967f21d000e09d3d3190317af7923b578ce02b1.tar.gz gcc-1967f21d000e09d3d3190317af7923b578ce02b1.tar.bz2 |
LoongArch: Fix bug in loongarch_emit_stack_tie [PR110484].
Which may result in implicit references to $fp when frame_pointer_needed is false,
causing regs_ever_live[$fp] to be true when $fp is not explicitly used,
resulting in $fp being used as the target replacement register in the rnreg pass.
The bug originates from SPEC2017 541.leela_r(-flto).
gcc/ChangeLog:
PR target/110484
* config/loongarch/loongarch.cc (loongarch_emit_stack_tie): Use the
frame_pointer_needed to determine whether to use the $fp register.
Co-authored-by: Guo Jie <guojie@loongson.cn>
Diffstat (limited to 'gcc/analyzer')
0 files changed, 0 insertions, 0 deletions