[binutils-gdb] bfin: use is_whitespace()
Jan Beulich
jbeulich@sourceware.org
Mon Feb 3 10:57:34 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3d782a79886554fd745b1427439d8083060515a2
commit 3d782a79886554fd745b1427439d8083060515a2
Author: Jan Beulich <jbeulich@suse.com>
Date: Mon Feb 3 11:55:40 2025 +0100
bfin: use is_whitespace()
Wherever blanks are permissible in input, tabs ought to be permissible,
too. This is particularly relevant when -f is passed to gas (alongside
appropriate input).
Diff:
---
gas/config/tc-bfin.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gas/config/tc-bfin.c b/gas/config/tc-bfin.c
index d91ca5fa083..5b1db29b505 100644
--- a/gas/config/tc-bfin.c
+++ b/gas/config/tc-bfin.c
@@ -1939,7 +1939,8 @@ bfin_eol_in_insn (char *line)
/* If the || is on the next line, there might be leading whitespace. */
temp++;
- while (*temp == ' ' || *temp == '\t') temp++;
+ while (is_whitespace (*temp))
+ temp++;
if (*temp == '|')
return true;
More information about the Binutils-cvs
mailing list