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

gas/config/tc-score.c
gas/config/tc-score7.c

index 431147f5b13530808ab17371b251465cf2be74a2..ab498754df5cee2d9e96c0820a1da84a02a8b255 100644 (file)
@@ -5767,7 +5767,7 @@ s3_s_score_end (int x ATTRIBUTE_UNUSED)
   expressionS exp;
   char *fragp;
 
-  if (!is_end_of_line[(unsigned char)*input_line_pointer])
+  if (!is_end_of_stmt (*input_line_pointer))
     {
       p = s3_get_symbol ();
       demand_empty_rest_of_line ();
@@ -5837,7 +5837,7 @@ s3_s_score_set (int x ATTRIBUTE_UNUSED)
   char name[s3_MAX_LITERAL_POOL_SIZE];
   char * orig_ilp = input_line_pointer;
 
-  while (!is_end_of_line[(unsigned char)*input_line_pointer])
+  while (!is_end_of_stmt (*input_line_pointer))
     {
       name[i] = (char) * input_line_pointer;
       i++;
@@ -6085,7 +6085,7 @@ s3_s_score_lcomm (int bytes_p)
       SKIP_WHITESPACE ();
     }
 
-  if (is_end_of_line[(unsigned char)*input_line_pointer])
+  if (is_end_of_stmt (*input_line_pointer))
     {
       as_bad (_("missing size expression"));
       return;
@@ -6119,7 +6119,7 @@ s3_s_score_lcomm (int bytes_p)
       ++input_line_pointer;
       SKIP_WHITESPACE ();
 
-      if (is_end_of_line[(unsigned char)*input_line_pointer])
+      if (is_end_of_stmt (*input_line_pointer))
         {
           as_bad (_("missing alignment"));
           return;
index cb56ba9c177fc248ce3183f79d51c015e371b86d..c822144a79e1b8e3f8bf30d09c9c34aaee2f93c2 100644 (file)
@@ -5608,7 +5608,7 @@ s7_s_score_end (int x ATTRIBUTE_UNUSED)
   expressionS exp;
   char *fragp;
 
-  if (!is_end_of_line[(unsigned char)*input_line_pointer])
+  if (!is_end_of_stmt (*input_line_pointer))
     {
       p = s7_get_symbol ();
       demand_empty_rest_of_line ();
@@ -5679,7 +5679,7 @@ s7_s_score_set (int x ATTRIBUTE_UNUSED)
   char name[s7_MAX_LITERAL_POOL_SIZE];
   char * orig_ilp = input_line_pointer;
 
-  while (!is_end_of_line[(unsigned char)*input_line_pointer])
+  while (!is_end_of_stmt (*input_line_pointer))
     {
       name[i] = (char) * input_line_pointer;
       i++;
@@ -5931,7 +5931,7 @@ s7_s_score_lcomm (int bytes_p)
       SKIP_WHITESPACE ();
     }
 
-  if (is_end_of_line[(unsigned char)*input_line_pointer])
+  if (is_end_of_stmt (*input_line_pointer))
     {
       as_bad (_("missing size expression"));
       return;
@@ -5965,7 +5965,7 @@ s7_s_score_lcomm (int bytes_p)
       ++input_line_pointer;
       SKIP_WHITESPACE ();
 
-      if (is_end_of_line[(unsigned char)*input_line_pointer])
+      if (is_end_of_stmt (*input_line_pointer))
         {
           as_bad (_("missing alignment"));
           return;