From 1adce770ea443ec73c8af29618c504495893d0b8 Mon Sep 17 00:00:00 2001 From: Sergey Belyashov Date: Mon, 17 Jan 2022 13:00:17 +0000 Subject: [PATCH] Fix Z80 assembly failure. PR 28762 * app.c (do_scrub_chars): Correct handling when the symbol is not 'af'. --- gas/ChangeLog | 5 +++++ gas/app.c | 2 ++ 2 files changed, 7 insertions(+) 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 + + PR 28762 + * app.c (do_scrub_chars): Correct handling when the symbol is not 'af'. + 2021-12-16 Nick Clifton 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; } -- 2.30.2