From: Jan Beulich Date: Mon, 3 Feb 2025 10:49:48 +0000 (+0100) Subject: Alpha/EVAX: use is_whitespace() / is_end_of_stmt() X-Git-Tag: binutils-2_45~1765 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=58e59144c743227b28c7ed78e640abd69e3c3bc0;p=thirdparty%2Fbinutils-gdb.git Alpha/EVAX: use is_whitespace() / is_end_of_stmt() Don't open-code checking for ' ', '\t', and statement ending chars. --- diff --git a/gas/config/tc-alpha.c b/gas/config/tc-alpha.c index 4f5897bd58e..fdd5db7f299 100644 --- a/gas/config/tc-alpha.c +++ b/gas/config/tc-alpha.c @@ -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) {