]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Include more registers in SIBCALL_REGS.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Oct 2019 21:01:25 +0000 (21:01 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Oct 2019 21:01:25 +0000 (21:01 +0000)
commitdf742aab8ca8b89027d5b8a3c15eb87bb791e660
tree42d8c7d19e6372a7740e691f200a2dc3d658af37
parent7c3dbd220797599172e5982eadce7fcfb860361c
RISC-V: Include more registers in SIBCALL_REGS.

This finishes the part 1 of 2 patch submitted by Andrew Burgess on Aug 19.
This adds the argument registers but not t0 (aka x5) to SIBCALL_REGS.  It
also adds the missing riscv_regno_to_class change.

Tested with cross riscv32-elf and riscv64-linux toolchain build and check.
There were no regressions.  I see about a 0.01% code size reduction for the
C and libstdc++ libraries.

gcc/
* config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
regs to SIBCALL_REGS.
* config/riscv/riscv.c (riscv_regno_to_class): Change argument
passing regs to SIBCALL_REGS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@277082 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/riscv/riscv.c
gcc/config/riscv/riscv.h