aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-tic54x.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-05-15 11:15:17 +0930
committerAlan Modra <amodra@gmail.com>2019-05-15 16:28:14 +0930
commitded12894f5a2836b06c997b899d04c9f692004c1 (patch)
treeaa75463e406d6ad7ac759342810ff56869129048 /gas/config/tc-tic54x.c
parentc5358db468d582e658488c2bcc1befe6e6e47366 (diff)
downloadgdb-ded12894f5a2836b06c997b899d04c9f692004c1.zip
gdb-ded12894f5a2836b06c997b899d04c9f692004c1.tar.gz
gdb-ded12894f5a2836b06c997b899d04c9f692004c1.tar.bz2
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.
Diffstat (limited to 'gas/config/tc-tic54x.c')
-rw-r--r--gas/config/tc-tic54x.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gas/config/tc-tic54x.c b/gas/config/tc-tic54x.c
index 6e2b05d..3e1d32a 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);