]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
metag: use is_whitespace()
authorJan Beulich <jbeulich@suse.com>
Mon, 3 Feb 2025 11:06:57 +0000 (12:06 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 3 Feb 2025 11:06:57 +0000 (12:06 +0100)
Replace the custom is_whitespace_char().

gas/config/tc-metag.c

index f4364356d8f5e18ca03c5ba2c8cfb3f76ab0a852..3a36d6abce56c3e67d0def8592786daec8ff86fb 100644 (file)
@@ -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,