RISC-V: Add new option -mrelax/-mno-relax.
authorJim Wilson <jimw@sifive.com>
Fri, 20 Apr 2018 22:30:18 +0000 (15:30 -0700)
committerJim Wilson <jimw@sifive.com>
Fri, 20 Apr 2018 22:30:18 +0000 (15:30 -0700)
commit7106056554c9f25e9a857b69b4595c9b3c7c4639
tree90c03b2214cd6b856319ad23932b775c7277b652
parent5c8f23cdab2a7cde2dae6fcd5f9b18d089efecaf
RISC-V: Add new option -mrelax/-mno-relax.

gas/
* config/tc-riscv.c (options): Add OPTION_RELAX and
OPTION_NO_RELAX.
(md_longopts): New option -mrelax and -mno-relax.
(md_parse_option): Handle -mrelax and -mno-relax.
* doc/c-riscv.texi: Document for -mrelax and -mno-relax.
* testsuite/gas/riscv/no-relax-reloc.d: New.
* testsuite/gas/riscv/no-relax-reloc.s: New.
* testsuite/gas/riscv/relax-reloc.d: New.
* testsuite/gas/riscv/relax-reloc.s: New.
gas/ChangeLog
gas/config/tc-riscv.c
gas/doc/c-riscv.texi
gas/testsuite/gas/riscv/no-relax-reloc.d [new file with mode: 0644]
gas/testsuite/gas/riscv/no-relax-reloc.s [new file with mode: 0644]
gas/testsuite/gas/riscv/relax-reloc.d [new file with mode: 0644]
gas/testsuite/gas/riscv/relax-reloc.s [new file with mode: 0644]