From 64ac402023eeb117f8f77623f85eb8a02f21f06d Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 7 Mar 2025 08:17:12 +0100 Subject: [PATCH] RISC-V: use is_end_of_stmt() ... instead of open-coding it. --- gas/config/tc-riscv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gas/config/tc-riscv.c b/gas/config/tc-riscv.c index bd8b020ca49..31359afa902 100644 --- a/gas/config/tc-riscv.c +++ b/gas/config/tc-riscv.c @@ -4939,7 +4939,7 @@ s_riscv_option (int x ATTRIBUTE_UNUSED) { char *name = input_line_pointer, ch; - while (!is_end_of_line[(unsigned char) *input_line_pointer]) + while (!is_end_of_stmt (*input_line_pointer)) ++input_line_pointer; ch = *input_line_pointer; *input_line_pointer = '\0'; @@ -5481,7 +5481,7 @@ s_riscv_insn (int x ATTRIBUTE_UNUSED) bfd_reloc_code_real_type imm_reloc = BFD_RELOC_UNUSED; char save_c; - while (!is_end_of_line[(unsigned char) *input_line_pointer]) + while (!is_end_of_stmt (*input_line_pointer)) ++input_line_pointer; save_c = *input_line_pointer; -- 2.39.5