From: Jan Beulich Date: Fri, 7 Mar 2025 07:17:12 +0000 (+0100) Subject: RISC-V: use is_end_of_stmt() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=64ac402023eeb117f8f77623f85eb8a02f21f06d;p=thirdparty%2Fbinutils-gdb.git RISC-V: use is_end_of_stmt() ... instead of open-coding it. --- 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;