[binutils-gdb] gas: squash (some) .linefile from listings

Jan Beulich jbeulich@sourceware.org
Mon Dec 5 12:53:15 GMT 2022


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c62e507e849f3461254a88298aa25c970e4339c8

commit c62e507e849f3461254a88298aa25c970e4339c8
Author: Jan Beulich <jbeulich@suse.com>
Date:   Mon Dec 5 13:51:24 2022 +0100

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


More information about the Binutils-cvs mailing list