From: Alan Modra Date: Wed, 15 May 2019 01:45:17 +0000 (+0930) Subject: tic54x_start_line_hook X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ded12894f5a2836b06c997b899d04c9f692004c1;p=binutils-gdb.git tic54x_start_line_hook 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 1530ebfdc76..bcece779a3b 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2019-05-15 Alan Modra + + PR 24538 + * config/tc-tic54x.c (tic54x_start_line_hook): Do skip end of line + chars in setting endp. + 2019-05-14 Nick Clifton PR 24538 diff --git a/gas/config/tc-tic54x.c b/gas/config/tc-tic54x.c index 6e2b05d39b8..3e1d32a02e4 100644 --- a/gas/config/tc-tic54x.c +++ b/gas/config/tc-tic54x.c @@ -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);