RISC-V: Fix .align handling when .option norelax.
authorJim Wilson <jimw@sifive.com>
Thu, 24 May 2018 17:35:59 +0000 (10:35 -0700)
committerJim Wilson <jimw@sifive.com>
Thu, 24 May 2018 17:35:59 +0000 (10:35 -0700)
commite80ae1906b63e092f3900addbc869f0836f8d71d
tree436090cf29122f5e3070f2e659032214bd023058
parent45f25d6c83c31a48a01ef8293bb3978f5e58e653
RISC-V: Fix .align handling when .option norelax.

gas/
PR gas/23219
* config/tc-riscv.c (riscv_frag_align_code): Move frag_more call after
!riscv_opts.relax check.
(riscv_handle_align): Rewrite !riscv_opts.relax support.
* config/tc-riscv (MAX_MEM_FOR_RS_ALIGN_CODE): Update.
* testsuite/gas/riscv/no-relax-align.d: New
* testsuite/gas/riscv/no-relax-align.s: New
* testsuite/gas/riscv/no-relax-align-2.d: New
* testsuite/gas/riscv/no-relax-align-2.s: New
gas/ChangeLog
gas/config/tc-riscv.c
gas/config/tc-riscv.h
gas/testsuite/gas/riscv/no-relax-align-2.d [new file with mode: 0644]
gas/testsuite/gas/riscv/no-relax-align-2.s [new file with mode: 0644]
gas/testsuite/gas/riscv/no-relax-align.d [new file with mode: 0644]
gas/testsuite/gas/riscv/no-relax-align.s [new file with mode: 0644]