public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] gas: squash (some) .linefile from listings
@ 2022-12-05 12:53 Jan Beulich
  0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2022-12-05 12:53 UTC (permalink / raw)
  To: bfd-cvs

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-05 12:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-05 12:53 [binutils-gdb] gas: squash (some) .linefile from listings Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).