gas: squash (some) .linefile from listings
authorJan Beulich <jbeulich@suse.com>
Mon, 5 Dec 2022 12:51:24 +0000 (13:51 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 5 Dec 2022 12:51:24 +0000 (13:51 +0100)
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

index 17971db9df7ee4dfa0760a73300404c61684ad38..4bbc7c92c79b32990406e67475d11a9579f7351b 100644 (file)
@@ -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;