aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2025-03-07 08:14:38 +0100
committerJan Beulich <jbeulich@suse.com>2025-03-07 08:14:38 +0100
commit4250bcf74e90f4e70452a189572ac044a9103ec4 (patch)
treeec785cf426a7d9f02897a4f40ddfa726d201f295 /gas
parent2a8dbd8e6fc8be7b3bc5f5d66cecf3156b06193e (diff)
downloadbinutils-4250bcf74e90f4e70452a189572ac044a9103ec4.zip
binutils-4250bcf74e90f4e70452a189572ac044a9103ec4.tar.gz
binutils-4250bcf74e90f4e70452a189572ac044a9103ec4.tar.bz2
MicroBlaze: use is_end_of_stmt()
... instead of open-coding it.
Diffstat (limited to 'gas')
-rw-r--r--gas/config/tc-microblaze.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/config/tc-microblaze.c b/gas/config/tc-microblaze.c
index 7e1b167..035a867 100644
--- a/gas/config/tc-microblaze.c
+++ b/gas/config/tc-microblaze.c
@@ -318,7 +318,7 @@ microblaze_s_weakext (int ignore ATTRIBUTE_UNUSED)
SKIP_WHITESPACE ();
- if (!is_end_of_line[(unsigned char) *input_line_pointer])
+ if (!is_end_of_stmt (*input_line_pointer))
{
if (S_IS_DEFINED (symbolP))
{
@@ -680,7 +680,7 @@ parse_imm (char * s, expressionS * e, offsetT min, offsetT max)
/* Find the start of "@GOT" or "@PLT" suffix (if any) */
for (atp = s; *atp != '@'; atp++)
- if (is_end_of_line[(unsigned char) *atp])
+ if (is_end_of_stmt (*atp))
break;
if (*atp == '@')
@@ -754,7 +754,7 @@ check_got (int * got_type, int * got_len)
/* Find the start of "@GOT" or "@PLT" suffix (if any). */
for (atp = input_line_pointer; *atp != '@'; atp++)
- if (is_end_of_line[(unsigned char) *atp])
+ if (is_end_of_stmt (*atp))
return NULL;
if (startswith (atp + 1, "GOTOFF"))
@@ -781,7 +781,7 @@ check_got (int * got_type, int * got_len)
first = atp - input_line_pointer;
past_got = atp + *got_len + 1;
- for (new_pointer = past_got; !is_end_of_line[(unsigned char) *new_pointer++];)
+ for (new_pointer = past_got; !is_end_of_stmt (*new_pointer++); )
;
second = new_pointer - past_got;
/* One extra byte for ' ' and one for NUL. */