diff options
author | Jan Beulich <jbeulich@suse.com> | 2025-02-03 12:02:38 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2025-02-03 12:02:38 +0100 |
commit | e782acb1c98f0d1e9b0cab1b38fe49e4254a7d3b (patch) | |
tree | ceeee59c2f1cc5a9a42ac3ff3b14081f2dcc876a | |
parent | 6cbfc6bf2356bc34db6aaa2aeda6356f4d9ca6b6 (diff) | |
download | binutils-e782acb1c98f0d1e9b0cab1b38fe49e4254a7d3b.zip binutils-e782acb1c98f0d1e9b0cab1b38fe49e4254a7d3b.tar.gz binutils-e782acb1c98f0d1e9b0cab1b38fe49e4254a7d3b.tar.bz2 |
H8/300: 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). At the same time use is_end_of_stmt() instead of an
open-coded check in adjacent code.
-rw-r--r-- | gas/config/tc-h8300.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/tc-h8300.c b/gas/config/tc-h8300.c index 105461d..eeee4c8 100644 --- a/gas/config/tc-h8300.c +++ b/gas/config/tc-h8300.c @@ -1904,12 +1904,12 @@ md_assemble (char *str) int size, i; /* Drop leading whitespace. */ - while (*str == ' ') + while (is_whitespace (*str)) str++; /* Find the op code end. */ for (op_start = op_end = str; - *op_end != 0 && *op_end != ' '; + !is_end_of_stmt (*op_end) && !is_whitespace (*op_end); op_end++) { if (*op_end == '.') |