From: Jan Beulich Date: Mon, 3 Feb 2025 11:06:57 +0000 (+0100) Subject: metag: use is_whitespace() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d274b29e92be655cd2677a8ce1980343480c8370;p=thirdparty%2Fbinutils-gdb.git metag: use is_whitespace() Replace the custom is_whitespace_char(). --- diff --git a/gas/config/tc-metag.c b/gas/config/tc-metag.c index f4364356d8f..3a36d6abce5 100644 --- a/gas/config/tc-metag.c +++ b/gas/config/tc-metag.c @@ -41,7 +41,6 @@ static char mnemonic_chars[256]; #define is_register_char(x) (register_chars[(unsigned char) x]) #define is_mnemonic_char(x) (mnemonic_chars[(unsigned char) x]) -#define is_whitespace_char(x) (((x) == ' ') || ((x) == '\t')) #define is_space_char(x) ((x) == ' ') #define FPU_PREFIX_CHAR 'f' @@ -221,7 +220,7 @@ skip_whitespace (const char *line) { const char *l = line; - if (is_whitespace_char (*l)) + if (is_whitespace (*l)) { l++; } @@ -6052,7 +6051,7 @@ parse_prefix (const char *line, metag_insn *insn) /* Check this isn't a split condition beginning with L. */ l2 = parse_split_condition (l2, insn); - if (l2 && is_whitespace_char (*l2)) + if (l2 && is_whitespace (*l2)) { l = l2; } @@ -6090,7 +6089,7 @@ parse_prefix (const char *line, metag_insn *insn) l++; } - if (! is_whitespace_char (*l)) + if (! is_whitespace (*l)) { l = parse_split_condition (l, insn); @@ -6116,7 +6115,7 @@ parse_prefix (const char *line, metag_insn *insn) insn->dsp_width = DSP_WIDTH_SINGLE; - while (!is_whitespace_char (*l)) + while (!is_whitespace (*l)) { /* We have to check for split condition codes first because they are the longest strings to match,