[binutils-gdb] Alpha/EVAX: use is_whitespace() / is_end_of_stmt()
Jan Beulich
jbeulich@sourceware.org
Mon Feb 3 10:51:56 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=58e59144c743227b28c7ed78e640abd69e3c3bc0
commit 58e59144c743227b28c7ed78e640abd69e3c3bc0
Author: Jan Beulich <jbeulich@suse.com>
Date: Mon Feb 3 11:49:48 2025 +0100
Alpha/EVAX: use is_whitespace() / is_end_of_stmt()
Don't open-code checking for ' ', '\t', and statement ending chars.
Diff:
---
gas/config/tc-alpha.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
{
More information about the Binutils-cvs
mailing list