[binutils-gdb] SH: use is_end_of_stmt()

Jan Beulich jbeulich@sourceware.org
Fri Mar 7 07:19:39 GMT 2025


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

commit 80276495890268e786d0a822ee622b7a633f0cc1
Author: Jan Beulich <jbeulich@suse.com>
Date:   Fri Mar 7 08:17:43 2025 +0100

    SH: use is_end_of_stmt()
    
    ... instead of open-coding it.

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

diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c
index 850e8382b72..db11939a350 100644
--- a/gas/config/tc-sh.c
+++ b/gas/config/tc-sh.c
@@ -452,7 +452,7 @@ sh_elf_cons (int nbytes)
   input_line_pointer--;		/* Put terminator back into stream.  */
   if (*input_line_pointer == '#' || *input_line_pointer == '!')
     {
-       while (! is_end_of_line[(unsigned char) *input_line_pointer++]);
+       while (! is_end_of_stmt (*input_line_pointer++));
     }
   else
     demand_empty_rest_of_line ();


More information about the Binutils-cvs mailing list