RISC-V: Handle non-legitimate address in riscv_legitimize_move
authorKito Cheng <kito.cheng@gmail.com>
Fri, 3 Nov 2017 14:59:39 +0000 (14:59 +0000)
committerPalmer Dabbelt <palmer@gcc.gnu.org>
Fri, 3 Nov 2017 14:59:39 +0000 (14:59 +0000)
commit13e4f305e040097de34481a72756dbe0ebd06dbc
tree380cb8477c0497c3cb8875e96f58d583c6d36033
parent91afdf4c797b1768036b2e32728482c2139e05e1
RISC-V: Handle non-legitimate address in riscv_legitimize_move

GCC may generate non-legitimate address due to we allow some
load/store with non-legitimate address in pic.md.

gcc/ChangeLog

2017-11-03  Kito Cheng  <kito.cheng@gmail.com>

        * config/riscv/riscv.c (riscv_legitimize_move): Handle
        non-legitimate address.

From-SVN: r254376
gcc/ChangeLog
gcc/config/riscv/riscv.c