[binutils-gdb] rl78: drop redundant statement separator check
Jan Beulich
jbeulich@sourceware.org
Fri Mar 7 07:26:03 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c5fa22cf2f3c1fcedba19cf6af25f7ac207f1cc5
commit c5fa22cf2f3c1fcedba19cf6af25f7ac207f1cc5
Author: Jan Beulich <jbeulich@suse.com>
Date: Fri Mar 7 08:23:53 2025 +0100
rl78: drop redundant statement separator check
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.
Diff:
---
gas/config/tc-rl78.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/gas/config/tc-rl78.c b/gas/config/tc-rl78.c
index 7492d3ccb3c..6d24bc3ecb5 100644
--- a/gas/config/tc-rl78.c
+++ b/gas/config/tc-rl78.c
@@ -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);
More information about the Binutils-cvs
mailing list