[binutils-gdb] Xtensa: use is_whitespace()

Jan Beulich jbeulich@sourceware.org
Mon Feb 3 11:31:02 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=52ea980d007540d36f3261487a93151c79e89b68

commit 52ea980d007540d36f3261487a93151c79e89b68
Author: Jan Beulich <jbeulich@suse.com>
Date:   Mon Feb 3 12:29:10 2025 +0100

    Xtensa: use is_whitespace()
    
    Convert an open-coded check.

Diff:
---
 gas/config/tc-xtensa.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/gas/config/tc-xtensa.c b/gas/config/tc-xtensa.c
index 25599f8eb3c..ed53b6d7c31 100644
--- 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-cvs mailing list