The 1st patch adds a hook to allow post processing after epilogue inserted.
The 2nd one implement the RISC-V hook to solve PR113715.

Fei Gao (2):
  target hooks: allow post processing after epilogue inserted.
  [RISC-V]: fix zcmp popretz [PR113715].

 gcc/config/riscv/riscv.cc                   | 191 ++++++++++++++------
 gcc/doc/tm.texi                             |   5 +
 gcc/doc/tm.texi.in                          |   2 +
 gcc/function.cc                             |   2 +
 gcc/hooks.cc                                |   7 +
 gcc/hooks.h                                 |   1 +
 gcc/target.def                              |   8 +
 gcc/testsuite/gcc.target/riscv/rv32i_zcmp.c |  56 ++++++
 8 files changed, 219 insertions(+), 53 deletions(-)

-- 
2.17.1

Reply via email to