RISC-V: Disallow regrenme if the TO register never used before for interrupt functions
authorKito Cheng <kito.cheng@sifive.com>
Fri, 17 Jan 2020 11:49:15 +0000 (19:49 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Tue, 21 Jan 2020 02:40:47 +0000 (10:40 +0800)
commite0a5b313c1a3edfb33a28b8d8fea92e01490ebb3
tree565354c0838029c31da23fc5a0b7476c8eed0141
parent2df76cd6895f9cf0efee4d8bc50258899ba7c293
RISC-V: Disallow regrenme if the TO register never used before for interrupt functions

gcc/ChangeLog

PR target/93304
* config/riscv/riscv-protos.h (riscv_hard_regno_rename_ok): New.
* config/riscv/riscv.c (riscv_hard_regno_rename_ok): New.
* config/riscv/riscv.h (HARD_REGNO_RENAME_OK): Defined.

gcc/testsuite/ChangeLog

PR target/93304
* gcc.target/riscv/pr93304.c: New test.
gcc/ChangeLog
gcc/config/riscv/riscv-protos.h
gcc/config/riscv/riscv.c
gcc/config/riscv/riscv.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/riscv/pr93304.c [new file with mode: 0644]