From: Jan Beulich Date: Fri, 7 Mar 2025 07:08:14 +0000 (+0100) Subject: {,E}COFF: use is_end_of_stmt() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2d677125936a61ada1df87d34840d55cbe4250ae;p=thirdparty%2Fbinutils-gdb.git {,E}COFF: use is_end_of_stmt() ... instead of open-coding it. Convert a variable's type to plain char then as well, as that's what it's really holding (and how it's used everywhere else). --- diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index 6072af669fc..19759cddc5e 100644 --- a/gas/config/obj-coff.c +++ b/gas/config/obj-coff.c @@ -1572,13 +1572,13 @@ obj_coff_section (int ignore ATTRIBUTE_UNUSED) exp = get_absolute_expression (); else { - unsigned char attr; + char attr; int readonly_removed = 0; int load_removed = 0; while (attr = *++input_line_pointer, attr != '"' - && ! is_end_of_line[attr]) + && ! is_end_of_stmt (attr)) { if (ISDIGIT (attr)) { diff --git a/gas/ecoff.c b/gas/ecoff.c index f665f1158a4..756aa927946 100644 --- a/gas/ecoff.c +++ b/gas/ecoff.c @@ -3351,7 +3351,7 @@ ecoff_directive_weakext (int ignore ATTRIBUTE_UNUSED) ++input_line_pointer; SKIP_WHITESPACE (); - if (! is_end_of_line[(unsigned char) *input_line_pointer]) + if (! is_end_of_stmt (*input_line_pointer)) { expression (&exp); if (exp.X_op != O_symbol)