]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
{,E}COFF: use is_end_of_stmt()
authorJan Beulich <jbeulich@suse.com>
Fri, 7 Mar 2025 07:08:14 +0000 (08:08 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Mar 2025 07:08:14 +0000 (08:08 +0100)
... instead of open-coding it. Convert a variable's type to plain char
then as well, as that's what it's really holding (and how it's used
everywhere else).

gas/config/obj-coff.c
gas/ecoff.c

index 6072af669fc60a87ab0d2830d259a367488f7691..19759cddc5e11117f193d03f5a09d84a60c52b23 100644 (file)
@@ -1572,13 +1572,13 @@ obj_coff_section (int ignore ATTRIBUTE_UNUSED)
        exp = get_absolute_expression ();
       else
        {
-         unsigned char attr;
+         char attr;
          int readonly_removed = 0;
          int load_removed = 0;
 
          while (attr = *++input_line_pointer,
                 attr != '"'
-                && ! is_end_of_line[attr])
+                && ! is_end_of_stmt (attr))
            {
              if (ISDIGIT (attr))
                {
index f665f1158a44a8a85e2baeaad049489429825101..756aa927946b3ea4925a515c56c5c86e980b85a5 100644 (file)
@@ -3351,7 +3351,7 @@ ecoff_directive_weakext (int ignore ATTRIBUTE_UNUSED)
 
       ++input_line_pointer;
       SKIP_WHITESPACE ();
-      if (! is_end_of_line[(unsigned char) *input_line_pointer])
+      if (! is_end_of_stmt (*input_line_pointer))
        {
          expression (&exp);
          if (exp.X_op != O_symbol)