RISC-V: Re-enable -msave-restore for shared libraries.
authorJim Wilson <jimw@sifive.com>
Sat, 7 Sep 2019 00:09:21 +0000 (00:09 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Sat, 7 Sep 2019 00:09:21 +0000 (17:09 -0700)
commit2f4d895197e7b137f50624bef58c9b614bf081e5
treef9961e7deaf647350496eb92790b1f96521aee4f
parente83573abb388801561768ed373c8e43a0f005110
RISC-V: Re-enable -msave-restore for shared libraries.

This re-enables -msave-restore for shared libraries, and uses the
t-slibgcc-libgcc file to get the save-restore routines included directly
in shared libraries so that we don't need to indirect through the PLT
to reach them, which doesn't work.

gcc/
* config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
change.

libgcc/
* config.host (riscv*-*-linux*): Add t-slibgcc-libgcc to tmake_file.
(riscv*-*-freebsd*): Likewise.

From-SVN: r275478
gcc/ChangeLog
gcc/config/riscv/riscv.c
libgcc/ChangeLog
libgcc/config.host