]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
RISC-V: use is_end_of_stmt()
authorJan Beulich <jbeulich@suse.com>
Fri, 7 Mar 2025 07:17:12 +0000 (08:17 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Mar 2025 07:17:12 +0000 (08:17 +0100)
... instead of open-coding it.

gas/config/tc-riscv.c

index bd8b020ca49029f640c494887c721ea8a0432a21..31359afa902010a8b6d15d35c81c4b75146c7706 100644 (file)
@@ -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;