]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
rl78: drop redundant statement separator check
authorJan Beulich <jbeulich@suse.com>
Fri, 7 Mar 2025 07:23:53 +0000 (08:23 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Mar 2025 07:23:53 +0000 (08:23 +0100)
With the switch to the use of is_end_of_stmt() in 2dd0370c433d
("rl78: use is_whitespace()") the open-coded checking against
line_separator_chars[] can be dropped.

gas/config/tc-rl78.c

index 7492d3ccb3c371379d1c95bc681da399bc3bb8ff..6d24bc3ecb565bd964f5f7ed12940e3523988826 100644 (file)
@@ -431,8 +431,7 @@ require_end_of_expr (const char *fname)
   if (is_end_of_stmt (* input_line_pointer)
       || * input_line_pointer == ','
       || strchr (comment_chars, * input_line_pointer)
-      || strchr (line_comment_chars, * input_line_pointer)
-      || strchr (line_separator_chars, * input_line_pointer))
+      || strchr (line_comment_chars, * input_line_pointer))
     return;
 
   as_bad (_("%%%s() must be outermost term in expression"), fname);