From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1386) id DA3F5389942F; Mon, 5 Dec 2022 12:53:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DA3F5389942F Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jan Beulich To: bfd-cvs@sourceware.org Subject: [binutils-gdb] gas: squash (some) .linefile from listings X-Act-Checkin: binutils-gdb X-Git-Author: Jan Beulich X-Git-Refname: refs/heads/master X-Git-Oldrev: fde7a8e4b007a29c7196fd5b017342899c367c00 X-Git-Newrev: c62e507e849f3461254a88298aa25c970e4339c8 Message-Id: <20221205125315.DA3F5389942F@sourceware.org> Date: Mon, 5 Dec 2022 12:53:15 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2022 12:53:16 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dc62e507e849f= 3461254a88298aa25c970e4339c8 commit c62e507e849f3461254a88298aa25c970e4339c8 Author: Jan Beulich Date: Mon Dec 5 13:51:24 2022 +0100 gas: squash (some) .linefile from listings =20 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 =3D find_end_of_line (input_line_pointer, flag_m68k_mri); =20 - if (s !=3D last_eol) + if (s !=3D last_eol + && !startswith (input_line_pointer, + !flag_m68k_mri ? " .linefile " + : " linefile ")) { char *copy; size_t len;