[binutils-gdb] avr: use is_whitespace()

Jan Beulich jbeulich@sourceware.org
Mon Feb 3 10:52:16 GMT 2025


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

commit 6295f4c5690900396975913d3694fbb5908c48c6
Author: Jan Beulich <jbeulich@suse.com>
Date:   Mon Feb 3 11:50:43 2025 +0100

    avr: use is_whitespace()
    
    Wherever blanks are permissible in input, tabs ought to be permissible,
    too. This is particularly relevant when -f is passed to gas (alongside
    appropriate input).

Diff:
---
 gas/config/tc-avr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gas/config/tc-avr.c b/gas/config/tc-avr.c
index 5976e58dd33..c98ba867d2c 100644
--- a/gas/config/tc-avr.c
+++ b/gas/config/tc-avr.c
@@ -618,7 +618,7 @@ show_mcu_list (FILE *stream)
 static inline char *
 skip_space (char *s)
 {
-  while (*s == ' ' || *s == '\t')
+  while (is_whitespace (*s))
     ++s;
   return s;
 }


More information about the Binutils-cvs mailing list