[PATCH] ​R​ISC-V: Add new option -mrelax/-mno-relax.

Kito Cheng kito.cheng@gmail.com
Fri Apr 20 05:59:00 GMT 2018


This patch add -mrelax and -mno-relax option to RISC-V assembler to
enable/disable relax optimization for input file.

2018-04-20  Kito Cheng  <kito.cheng@gmail.com>

       * 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-RISC-V-Add-new-option-mrelax-mno-relax.patch
Type: text/x-patch
Size: 4870 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20180420/706b76ff/attachment.bin>


More information about the Binutils mailing list