aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-riscv.h
diff options
context:
space:
mode:
authorJim Wilson <jimw@sifive.com>2018-05-24 10:35:59 -0700
committerJim Wilson <jimw@sifive.com>2018-05-24 10:35:59 -0700
commite80ae1906b63e092f3900addbc869f0836f8d71d (patch)
tree436090cf29122f5e3070f2e659032214bd023058 /gas/config/tc-riscv.h
parent45f25d6c83c31a48a01ef8293bb3978f5e58e653 (diff)
downloadgdb-e80ae1906b63e092f3900addbc869f0836f8d71d.zip
gdb-e80ae1906b63e092f3900addbc869f0836f8d71d.tar.gz
gdb-e80ae1906b63e092f3900addbc869f0836f8d71d.tar.bz2
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
Diffstat (limited to 'gas/config/tc-riscv.h')
-rw-r--r--gas/config/tc-riscv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-riscv.h b/gas/config/tc-riscv.h
index a4f40e6..5e59740 100644
--- a/gas/config/tc-riscv.h
+++ b/gas/config/tc-riscv.h
@@ -62,7 +62,7 @@ extern bfd_boolean riscv_frag_align_code (int);
extern void riscv_handle_align (fragS *);
#define HANDLE_ALIGN riscv_handle_align
-#define MAX_MEM_FOR_RS_ALIGN_CODE 7
+#define MAX_MEM_FOR_RS_ALIGN_CODE (3 + 4)
/* The ISA of the target may change based on command-line arguments. */
#define TARGET_FORMAT riscv_target_format()