From: Jan Beulich Date: Fri, 7 Mar 2025 07:10:35 +0000 (+0100) Subject: Arm: use is_end_of_stmt() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=41241256243a266bfe9a46d14aac148e1df88bcd;p=thirdparty%2Fbinutils-gdb.git Arm: use is_end_of_stmt() ... 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. --- diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index add9b77ab17..ed910b857df 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -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 == '.')