[PATCH v2 62/65] Xtensa: use is_whitespace()

Jan Beulich jbeulich@suse.com
Mon Jan 27 16:45:36 GMT 2025


Convert an open-coded check.
---
v2: New.

--- a/gas/config/tc-xtensa.c
+++ b/gas/config/tc-xtensa.c
@@ -1857,11 +1857,12 @@ expression_end (const char *name)
 	case ',':
 	case ':':
 	  return name;
-	case ' ':
-	case '\t':
-	  ++name;
-	  continue;
 	default:
+	  if (is_whitespace (*name))
+	    {
+	      ++name;
+	      continue;
+	    }
 	  return 0;
 	}
     }



More information about the Binutils mailing list