[PATCH 18/34] PPC: use is_end_of_stmt()
Jan Beulich
jbeulich@suse.com
Wed Feb 19 15:32:13 GMT 2025
... instead of open-coding it.
--- a/gas/config/tc-ppc.c
+++ b/gas/config/tc-ppc.c
@@ -5038,7 +5038,7 @@ ppc_ref (int ignore ATTRIBUTE_UNUSED)
{
input_line_pointer++;
SKIP_WHITESPACE ();
- if (is_end_of_line[(unsigned char) *input_line_pointer])
+ if (is_end_of_stmt (*input_line_pointer))
{
as_bad (_("missing symbol name"));
ignore_rest_of_line ();
@@ -5796,7 +5796,7 @@ ppc_tc (int ignore ATTRIBUTE_UNUSED)
symbol_set_frag (label, symbol_get_frag (sym));
S_SET_VALUE (label, S_GET_VALUE (sym));
- while (! is_end_of_line[(unsigned char) *input_line_pointer])
+ while (! is_end_of_stmt (*input_line_pointer))
++input_line_pointer;
return;
More information about the Binutils
mailing list