aboutsummaryrefslogtreecommitdiff
path: root/gas/app.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2024-07-19 11:53:24 +0200
committerJan Beulich <jbeulich@suse.com>2024-07-19 11:53:24 +0200
commitda0fa10a4e0967be13cfa86a64a992602161b31d (patch)
tree7d3c1bae3836b388e75ef66064e0ef077203142e /gas/app.c
parent75d0166b71137df3b2bcdd64cfe34c00180607de (diff)
downloadfsf-binutils-gdb-da0fa10a4e0967be13cfa86a64a992602161b31d.zip
fsf-binutils-gdb-da0fa10a4e0967be13cfa86a64a992602161b31d.tar.gz
fsf-binutils-gdb-da0fa10a4e0967be13cfa86a64a992602161b31d.tar.bz2
gas: drop tic6x scrubber special case
Two successive PUT() without a state change in between can't be right: The first PUT() may take the "goto tofull" path, leading to the subsequent character being processed later in the previously set state (1 in this case), rather than the state we were in upon entry to the switch() (13 in this case). However, the original purpose of that logic appears to be to not mistake "|| ^" for "||^". This effect, sadly, looks to not have been achieved. Therefore drop the special case altogether; something that actually achieves the (presumably) intended effect may then be introduced down the road.
Diffstat (limited to 'gas/app.c')
-rw-r--r--gas/app.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gas/app.c b/gas/app.c
index 57398b3..3ac5e2a 100644
--- a/gas/app.c
+++ b/gas/app.c
@@ -769,16 +769,6 @@ do_scrub_chars (size_t (*get) (char *, size_t), char *tostart, size_t tolen,
line from just after the first white space. */
state = 1;
PUT ('|');
-#ifdef TC_TIC6X
- /* "||^" is used for SPMASKed instructions. */
- ch = GET ();
- if (ch == EOF)
- goto fromeof;
- else if (ch == '^')
- PUT ('^');
- else
- UNGET (ch);
-#endif
continue;
#endif
#ifdef TC_Z80