tic54x_start_line_hook
authorAlan Modra <amodra@gmail.com>
Wed, 15 May 2019 01:45:17 +0000 (11:15 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 15 May 2019 06:58:14 +0000 (16:28 +0930)
git commit 3076e59490 caused
tic54x-coff  +FAIL: c54x subsym assignment/use

PR 24538
* config/tc-tic54x.c (tic54x_start_line_hook): Do skip end of line
chars in setting endp.

gas/ChangeLog
gas/config/tc-tic54x.c

index 1530ebfdc76080141885d7ebd77402f4c324ddfe..bcece779a3b8118a72577e449095eeae1344034a 100644 (file)
@@ -1,3 +1,9 @@
+2019-05-15  Alan Modra  <amodra@gmail.com>
+
+       PR 24538
+       * config/tc-tic54x.c (tic54x_start_line_hook): Do skip end of line
+       chars in setting endp.
+
 2019-05-14  Nick Clifton  <nickc@redhat.com>
 
        PR 24538
index 6e2b05d39b83f4d3bb9e38edb24455aecc81e987..3e1d32a02e4167bfab3645938216177ff5d78e1f 100644 (file)
@@ -4738,12 +4738,9 @@ tic54x_start_line_hook (void)
   char *replacement = NULL;
 
   /* Work with a copy of the input line, including EOL char.  */
-  for (endp = input_line_pointer; ; endp ++)
-    {
-      unsigned char c = * (unsigned char *) endp;
-      if (c == 0 || is_end_of_line [c])
-       break;
-    }
+  for (endp = input_line_pointer; *endp != 0; )
+    if (is_end_of_line[(unsigned char) *endp++])
+      break;
 
   line = xmemdup0 (input_line_pointer, endp - input_line_pointer);