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

gas/config/tc-i386-intel.c
gas/config/tc-i386.c

index 531683b4ce7c080f1f7f178384dc40c11892c546..2b86f88b8bcb55afc968299da11f06c6f6e3d019 100644 (file)
@@ -669,7 +669,7 @@ i386_intel_operand (char *operand_string, int got_a_float)
        ret = 0;
     }
 
-  if (!is_end_of_line[(unsigned char) *input_line_pointer])
+  if (!is_end_of_stmt (*input_line_pointer))
     {
       if (ret)
        as_bad (_("junk `%s' after expression"), input_line_pointer);
index 1d07c2f1e370b1bcabf79493c3024d8e13aa595c..2aab0e99f01d19773dc20bda1e66e5777c506939 100644 (file)
@@ -3077,7 +3077,7 @@ set_intel_syntax (int syntax_flag)
   int ask_naked_reg = 0;
 
   SKIP_WHITESPACE ();
-  if (!is_end_of_line[(unsigned char) *input_line_pointer])
+  if (!is_end_of_stmt (*input_line_pointer))
     {
       char *string;
       int e = get_symbol_name (&string);
@@ -3132,7 +3132,7 @@ set_check (int what)
 
   SKIP_WHITESPACE ();
 
-  if (!is_end_of_line[(unsigned char) *input_line_pointer])
+  if (!is_end_of_stmt (*input_line_pointer))
     {
       char *string;
       int e = get_symbol_name (&string);
@@ -3241,7 +3241,7 @@ set_cpu_arch (int dummy ATTRIBUTE_UNUSED)
 
   SKIP_WHITESPACE ();
 
-  if (is_end_of_line[(unsigned char) *input_line_pointer])
+  if (is_end_of_stmt (*input_line_pointer))
     {
       as_bad (_("missing cpu architecture"));
       input_line_pointer++;
@@ -3452,7 +3452,7 @@ set_cpu_arch (int dummy ATTRIBUTE_UNUSED)
 
   no_cond_jump_promotion = 0;
   if (restore_line_pointer (e) == ','
-      && !is_end_of_line[(unsigned char) input_line_pointer[1]])
+      && !is_end_of_stmt (input_line_pointer[1]))
     {
       ++input_line_pointer;
       e = get_symbol_name (&s);
@@ -13177,7 +13177,7 @@ lex_got (enum bfd_reloc_code_real *rel,
   unsigned int j;
 
   for (cp = input_line_pointer; *cp != '@'; cp++)
-    if (is_end_of_line[(unsigned char) *cp] || *cp == ',')
+    if (is_end_of_stmt (*cp) || *cp == ',')
       return NULL;
 
   for (j = 0; j < ARRAY_SIZE (gotrel); j++)
@@ -13214,7 +13214,7 @@ lex_got (enum bfd_reloc_code_real *rel,
                 (and including) an end_of_line char or comma.  */
              past_reloc = cp + 1 + len;
              cp = past_reloc;
-             while (!is_end_of_line[(unsigned char) *cp] && *cp != ',')
+             while (!is_end_of_stmt (*cp) && *cp != ',')
                ++cp;
              second = cp + 1 - past_reloc;