[PATCH 01/34] {,E}COFF: use is_end_of_stmt()

Jan Beulich jbeulich@suse.com
Wed Feb 19 15:20:21 GMT 2025


... instead of open-coding it. Convert a variable's type to plain char
then as well, as that's what it's really holding (and how it's used
everywhere else).

--- a/gas/config/obj-coff.c
+++ b/gas/config/obj-coff.c
@@ -1572,13 +1572,13 @@ obj_coff_section (int ignore ATTRIBUTE_U
 	exp = get_absolute_expression ();
       else
 	{
-	  unsigned char attr;
+	  char attr;
 	  int readonly_removed = 0;
 	  int load_removed = 0;
 
 	  while (attr = *++input_line_pointer,
 		 attr != '"'
-		 && ! is_end_of_line[attr])
+		 && ! is_end_of_stmt (attr))
 	    {
 	      if (ISDIGIT (attr))
 		{
--- a/gas/ecoff.c
+++ b/gas/ecoff.c
@@ -3350,7 +3350,7 @@ ecoff_directive_weakext (int ignore ATTR
 
       ++input_line_pointer;
       SKIP_WHITESPACE ();
-      if (! is_end_of_line[(unsigned char) *input_line_pointer])
+      if (! is_end_of_stmt (*input_line_pointer))
 	{
 	  expression (&exp);
 	  if (exp.X_op != O_symbol)



More information about the Binutils mailing list