From: Jan Beulich Date: Fri, 7 Mar 2025 07:13:23 +0000 (+0100) Subject: HP-PA: use is_end_of_stmt() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cfa0b67f9be166930eadecff833a57c6a84b33a2;p=thirdparty%2Fbinutils-gdb.git HP-PA: use is_end_of_stmt() ... instead of open-coding it. --- diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c index 8d6de8d9a37..c2a981eeb21 100644 --- a/gas/config/tc-hppa.c +++ b/gas/config/tc-hppa.c @@ -2420,14 +2420,14 @@ pa_chk_field_selector (char **str) s++; *str = s; - if (is_end_of_line [(unsigned char) s[0]]) + if (is_end_of_stmt (s[0])) return e_fsel; else if (s[1] == '\'' || s[1] == '%') { name[0] = TOLOWER (s[0]); name[1] = 0; } - else if (is_end_of_line [(unsigned char) s[1]]) + else if (is_end_of_stmt (s[1])) return e_fsel; else if (s[2] == '\'' || s[2] == '%') { @@ -2435,7 +2435,7 @@ pa_chk_field_selector (char **str) name[1] = TOLOWER (s[1]); name[2] = 0; } - else if (is_end_of_line [(unsigned char) s[2]]) + else if (is_end_of_stmt (s[2])) return e_fsel; else if (s[3] == '\'' || s[3] == '%') {