From: Jan Beulich Date: Fri, 17 Jul 2026 07:23:55 +0000 (+0200) Subject: gas: scrubber handling of string continuation across lines X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=59d681f3a8278d29a74dfd7de8ef276d08b717cf;p=thirdparty%2Fbinutils-gdb.git gas: scrubber handling of string continuation across lines Apparently forever (according to [available] history) two backslashes have been emitted when, afaict, only one was meant. --- diff --git a/gas/app.c b/gas/app.c index 3410e696572..e5b65bc0152 100644 --- a/gas/app.c +++ b/gas/app.c @@ -694,12 +694,12 @@ do_scrub_chars (size_t (*get) (char *, size_t), char *tostart, size_t tolen, ch = GET (); switch (ch) { - /* Handle strings broken across lines, by turning '\n' into - '\\' and 'n'. */ + /* Handle strings broken across lines, by turning '\\' followed + by '\n' into '\\' (already emitted when state moved to 6) and + 'n'. */ case '\n': - UNGET ('n'); add_newlines++; - PUT ('\\'); + PUT ('n'); continue; case EOF: