From: Jan Beulich Date: Mon, 5 Dec 2022 12:51:24 +0000 (+0100) Subject: gas: squash (some) .linefile from listings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c62e507e849f3461254a88298aa25c970e4339c8;p=binutils-gdb.git gas: squash (some) .linefile from listings Not so long ago we started to insert these artificially when expanding certain macro-like constructs; zap them as cluttering what actually results from user input. --- diff --git a/gas/read.c b/gas/read.c index 17971db9df7..4bbc7c92c79 100644 --- a/gas/read.c +++ b/gas/read.c @@ -868,7 +868,10 @@ read_a_source_file (const char *name) /* Find the end of the current expanded macro line. */ s = find_end_of_line (input_line_pointer, flag_m68k_mri); - if (s != last_eol) + if (s != last_eol + && !startswith (input_line_pointer, + !flag_m68k_mri ? " .linefile " + : " linefile ")) { char *copy; size_t len;