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.
This commit is contained in:
Jan Beulich 2026-07-17 09:23:55 +02:00
parent a97e7d1eb5
commit 59d681f3a8

View file

@ -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: