summaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorSergey Belyashov <sergey.belyashov@gmail.com>2022-01-17 13:00:17 +0000
committerNick Clifton <nickc@redhat.com>2022-01-17 13:00:17 +0000
commit1adce770ea443ec73c8af29618c504495893d0b8 (patch)
tree753d3fe428dbbe3025844510581d8fbe8e4cb95a /gas
parent8bf10e2e77f3b4e19fe01e95d25c0c2caf7eef3b (diff)
downloadbinutils-gdb-1adce770ea443ec73c8af29618c504495893d0b8.tar.gz
Fix Z80 assembly failure.
PR 28762 * app.c (do_scrub_chars): Correct handling when the symbol is not 'af'.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/app.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 01080b94350..ddf4803ab18 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2022-01-17 Sergey Belyashov <sergey.belyashov@gmail.com>
+
+ PR 28762
+ * app.c (do_scrub_chars): Correct handling when the symbol is not 'af'.
+
2021-12-16 Nick Clifton <nickc@redhat.com>
PR 28686
diff --git a/gas/app.c b/gas/app.c
index c798b6a12e4..dd96b410bad 100644
--- a/gas/app.c
+++ b/gas/app.c
@@ -748,6 +748,8 @@ do_scrub_chars (size_t (*get) (char *, size_t), char *tostart, size_t tolen)
}
else
{
+ if (ch != EOF)
+ UNGET (ch);
state = 9;
break;
}