r275231 - in /trunk/gcc: ChangeLog config/riscv...
wilson@gcc.gnu.org
wilson@gcc.gnu.org
Fri Aug 30 23:32:00 GMT 2019
Author: wilson
Date: Fri Aug 30 23:32:52 2019
New Revision: 275231
URL: https://gcc.gnu.org/viewcvs?rev=275231&root=gcc&view=rev
Log:
RISC-V: Disable -msave-restore for shared libraries.
This was noticed while trying to test -msave-restore support. The
save/restore routines use the alternate return register t0/x5 which is
clobbered by the PLT header, so we can't use them in shared libraries.
This patch disables -msave-restore when -fpic (and -mplt), and emits a
warning if the user explicitly turned on -msave-restore.
gcc/
* config/riscv/riscv.c (riscv_option_override): If -msave-restore
and -fpic and -mplt then disable -msave-restore and warn.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/riscv/riscv.c
More information about the Gcc-cvs
mailing list