]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Arm: use is_end_of_stmt()
authorJan Beulich <jbeulich@suse.com>
Fri, 7 Mar 2025 07:10:35 +0000 (08:10 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Mar 2025 07:10:35 +0000 (08:10 +0100)
... instead of open-coding it. This also fixes an array underrun issue:
The wrong casting to plain int could have yielded negative values when
plain char is a signed type.

gas/config/tc-arm.c

index add9b77ab17184bec810ca6872a13fcca4b583b5..ed910b857dfed7678453c40d6b8756fec9c6eacc 100644 (file)
@@ -3668,7 +3668,7 @@ tc_start_label_without_colon (void)
     {
       const char *label = input_line_pointer;
 
-      while (!is_end_of_line[(int) label[-1]])
+      while (!is_end_of_stmt (label[-1]))
        --label;
 
       if (*label == '.')