From c62e507e849f3461254a88298aa25c970e4339c8 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 5 Dec 2022 13:51:24 +0100 Subject: [PATCH] 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. --- gas/read.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.30.2