public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Add unclosed macros.
@ 2023-04-07  7:35 Die Li
  0 siblings, 0 replies; only message in thread
From: Die Li @ 2023-04-07  7:35 UTC (permalink / raw)
  To: binutils; +Cc: kito.cheng, palmer, Die Li

Signed-off-by: Die Li <lidie@eswincomputing.com>
---
 gas/config/tc-riscv.c | 1 +
 opcodes/riscv-dis.c   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c
index 4eff07a6d4a..7d6f9f2476b 100644
--- a/gas/config/tc-riscv.c
+++ b/gas/config/tc-riscv.c
@@ -1528,6 +1528,7 @@ md_begin (void)
 #define DECLARE_CSR_ALIAS(name, num, class, define_version, abort_version) \
   DECLARE_CSR(name, num, class, define_version, abort_version);
 #include "opcode/riscv-opc.h"
+#undef DECLARE_CSR_ALIAS
 #undef DECLARE_CSR
 
   opcode_names_hash = str_htab_create ();
diff --git a/opcodes/riscv-dis.c b/opcodes/riscv-dis.c
index 3aaa45f419c..5a761351ed3 100644
--- a/opcodes/riscv-dis.c
+++ b/opcodes/riscv-dis.c
@@ -557,6 +557,7 @@ print_insn_args (const char *oparg, insn_t l, bfd_vma pc, disassemble_info *info
 #define DECLARE_CSR_ALIAS(name, num, class, define_version, abort_version) \
 		DECLARE_CSR (name, num, class, define_version, abort_version)
 #include "opcode/riscv-opc.h"
+#undef DECLARE_CSR_ALIAS
 #undef DECLARE_CSR
 	      }
 
-- 
2.17.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-07  7:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-07  7:35 [PATCH] Add unclosed macros Die Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).