[PATCH 20/34] RISC-V: use is_end_of_stmt()

Jan Beulich jbeulich@suse.com
Wed Feb 19 15:32:58 GMT 2025


... instead of open-coding it.

--- a/gas/config/tc-riscv.c
+++ b/gas/config/tc-riscv.c
@@ -4932,7 +4932,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';
@@ -5474,7 +5474,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;



More information about the Binutils mailing list