diff options
author | Jan Beulich <jbeulich@suse.com> | 2025-02-03 12:01:59 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2025-02-03 12:01:59 +0100 |
commit | 21c901a95d0e97ac5064f6a5ece039ebc7087e43 (patch) | |
tree | 72fd01aa4333fa79ffa8a11d047a34eb6b75aadf | |
parent | 6b6b9c89a4366f1119d7ce2afcbc1e50db2d8d6e (diff) | |
download | binutils-21c901a95d0e97ac5064f6a5ece039ebc7087e43.zip binutils-21c901a95d0e97ac5064f6a5ece039ebc7087e43.tar.gz binutils-21c901a95d0e97ac5064f6a5ece039ebc7087e43.tar.bz2 |
fr30: use is_whitespace()
Convert open-coded checks. At the same time use is_end_of_stmt() instead
of an open-coded check in adjacent code.
-rw-r--r-- | gas/config/tc-fr30.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/config/tc-fr30.c b/gas/config/tc-fr30.c index 7d1944d..2b135f4 100644 --- a/gas/config/tc-fr30.c +++ b/gas/config/tc-fr30.c @@ -359,7 +359,7 @@ fr30_is_colon_insn (char *start, char *nul_char) { /* Nope - check to see a 'd' follows the colon. */ if ( (i_l_p[1] == 'd' || i_l_p[1] == 'D') - && (i_l_p[2] == ' ' || i_l_p[2] == '\t' || i_l_p[2] == '\n')) + && (is_whitespace (i_l_p[2]) || is_end_of_stmt (i_l_p[2]))) { /* Yup - it might be delay slot instruction. */ int i; @@ -393,17 +393,17 @@ fr30_is_colon_insn (char *start, char *nul_char) } /* Check to see if the text following the colon is '8'. */ - if (i_l_p[1] == '8' && (i_l_p[2] == ' ' || i_l_p[2] == '\t')) + if (i_l_p[1] == '8' && is_whitespace (i_l_p[2])) return restore_colon (i_l_p + 2, nul_char); /* Check to see if the text following the colon is '20'. */ else if (i_l_p[1] == '2' && i_l_p[2] =='0' - && (i_l_p[3] == ' ' || i_l_p[3] == '\t')) + && is_whitespace (i_l_p[3])) return restore_colon (i_l_p + 3, nul_char); /* Check to see if the text following the colon is '32'. */ else if (i_l_p[1] == '3' && i_l_p[2] =='2' - && (i_l_p[3] == ' ' || i_l_p[3] == '\t')) + && is_whitespace (i_l_p[3])) return restore_colon (i_l_p + 3, nul_char); return 0; |