]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Alpha/EVAX: use is_whitespace() / is_end_of_stmt()
authorJan Beulich <jbeulich@suse.com>
Mon, 3 Feb 2025 10:49:48 +0000 (11:49 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 3 Feb 2025 10:49:48 +0000 (11:49 +0100)
Don't open-code checking for ' ', '\t', and statement ending chars.

gas/config/tc-alpha.c

index 4f5897bd58e74b2ddc4c88866d13239ea7f51b92..fdd5db7f299ac6c89164cebb0bcefa8a8e21cd07 100644 (file)
@@ -4201,7 +4201,7 @@ s_alpha_section_name (void)
     {
       char *end = input_line_pointer;
 
-      while (0 == strchr ("\n\t,; ", *end))
+      while (!is_whitespace (*end) && !is_end_of_stmt (*end) && *end != ',')
        end++;
       if (end == input_line_pointer)
        {