From: Sergey Belyashov Date: Mon, 17 Jan 2022 13:00:17 +0000 (+0000) Subject: Fix Z80 assembly failure. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1adce770ea443ec73c8af29618c504495893d0b8;p=binutils-gdb.git Fix Z80 assembly failure. PR 28762 * app.c (do_scrub_chars): Correct handling when the symbol is not 'af'. --- 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; }