Message ID | 2ae84a68-29f3-d94d-1a12-c3d0c81f81a3@suse.com |
---|---|
State | Accepted |
Headers |
Return-Path: <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp254452wrr; Tue, 29 Nov 2022 02:37:34 -0800 (PST) X-Google-Smtp-Source: AA0mqf7HxgpjMwsudn5i/Jiq5HzWKkOZAh+Sc23SPK2bu2JtW3/Bt8QD7h4+QOw/ktxHzjsbjNdN X-Received: by 2002:a17:906:7096:b0:78c:fda3:c025 with SMTP id b22-20020a170906709600b0078cfda3c025mr38463814ejk.461.1669718254554; Tue, 29 Nov 2022 02:37:34 -0800 (PST) Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id bc5-20020a056402204500b0046b2aaf7544si4312243edb.398.2022.11.29.02.37.34 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Nov 2022 02:37:34 -0800 (PST) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=uFksLOE+; arc=fail (signature failed); spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9A1A938582A3 for <ouuuleilei@gmail.com>; Tue, 29 Nov 2022 10:37:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9A1A938582A3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669718253; bh=TSxNy/uqwDH3tYTCb8B3ZAtC0sCP4r7F9/QDQlFI+WI=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=uFksLOE+iNT9kNgBkhDGkee5eQXWHtFF0+Grse2M3VD9wOZFAbbNCzxR6BVMQYw2c bx3qcQSkPsNuk9BNTCZEnq3iuq0eQvX1j5ZuIxyoX1JvVqwWU8qrppAtCfPTk4UtNq KoelbVD5nRngn+RMffb2ec/zwwyl7UXSw85FeA9M= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2044.outbound.protection.outlook.com [40.107.105.44]) by sourceware.org (Postfix) with ESMTPS id 788383857835 for <binutils@sourceware.org>; Tue, 29 Nov 2022 10:37:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 788383857835 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OUNIAYunqtmLc0+RGWRMmZNPHMEDuDF2TN6b44DJ74HjhzK7GvJLJ9mxKRqj/tLu2940cEvnnAgOWv4YYnKpyWHWyMfAfq68o5loE84By35a44DY5pkZcptoLC+l5PUh2ECvUDU6SlgiowiAKQRKVswPumFsELJGfRRRYdr1g/tWRS5tKn+k+O2pL2zOINkXGKJM8y4yB8evfgfxtX5XzgIPaMAdFIt1xU6IHYwExa1FaLt3bXIwI4J4jFncqYOPzSbVFM6UWtv2e6y3muBiVG/0XTgCvlr/u+reL7eh9hQdjB5GUXlS1ww/TUGoHX3nd81quhME/rDDKt+mlje2yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TSxNy/uqwDH3tYTCb8B3ZAtC0sCP4r7F9/QDQlFI+WI=; b=PV+RbvVdBTfR7luHMPbM/+ZTzB6bMRDXpAcPkSx+OLFu3Rcq3QmLjGG09UiT59r2OpuSNsLVfqwvYpsqyUHuoZZxMQ8i3SWgxZTYyRf4oopRDherXJbiehKHMvtOxN2GNwqF/poPL0HeRG93kRs7LYK8Z5QuxNKt7YgwHOJRTpOIv4QNRnlrgIYlXs+vBeq/NdZKOuCOZcRiFG/4f5bxZC9wwEcoMmtSXHo0A5FNh8MG0ySfj4lan5tL1f6bZHu45Ui/QNnkq26V97FNY9tYwSKJDHh79sqGNLtrNw3ou02b0tHlI0pJLRWlziRWBPHfCvF6/IuLvzFihCEmxcIXNg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none Received: from VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) by DBBPR04MB7947.eurprd04.prod.outlook.com (2603:10a6:10:1f1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.19; Tue, 29 Nov 2022 10:37:00 +0000 Received: from VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::4da2:ea8b:e71e:b8d8]) by VE1PR04MB6560.eurprd04.prod.outlook.com ([fe80::4da2:ea8b:e71e:b8d8%4]) with mapi id 15.20.5857.023; Tue, 29 Nov 2022 10:37:00 +0000 Message-ID: <2ae84a68-29f3-d94d-1a12-c3d0c81f81a3@suse.com> Date: Tue, 29 Nov 2022 11:36:59 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: [PATCH 2/5] gas: squash (some) .linefile from listings Content-Language: en-US To: Binutils <binutils@sourceware.org> References: <9afdf9c8-323b-78c1-d75b-8964e00cdec5@suse.com> In-Reply-To: <9afdf9c8-323b-78c1-d75b-8964e00cdec5@suse.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR3P281CA0146.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:95::18) To VE1PR04MB6560.eurprd04.prod.outlook.com (2603:10a6:803:122::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6560:EE_|DBBPR04MB7947:EE_ X-MS-Office365-Filtering-Correlation-Id: 932caf91-e989-421e-46cf-08dad1f5a5dd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gT+kOjXvZ4U1jh9qQIqq3It4j5ux4YZR4NbAwemINAZExRw1RESRhTfGZl8ZuI9UTgpXUpJU/S7g5VOK6OyxL0a9bdSW9k5K6buA5tOxvSWO3xbFNtt1JjeM/mu6FMW47Xiys8Fx4oqcNo7wm5kjeEkBAUJQhNyV+IS4VwnzS4KbRnjNy8/Eq/DZaUqOF+ITAYg9XzYKwIhZ+bY+3z1Pj9/CnYE72ybunnuvgkDsSnOtoIGqNQunyn97gjkoRIE6SOU0+WS0EV2BJXLkh2axE33cm32gH8bQ8HEjp1ViTP2vXCZbe+8jEgL1Z5bZyyLa06y24rZTVxfKC+pIOCsZ0mQ+TO+ZtYwwFcJNF/Bb2UM6PS3usW5IRA+rzI3g4w3pElvvHVy00+l47t2oS2eCvOnIaeacpOFOp7j5M4p8NSt2/JQjh1IQiMuqeuOm+3fkNELj993Fh9xaCdCb3OG4oshbfms3nZb2Cuwtuf2Jg1OkFzmRcvMSjSsJkf9nJKjkb0dJMrLCuCYj+jn9PkMIbVdPtnTZhQikOPemwTOHSDJ6ti5+X7RVEa26QGOL/4jnkXc1Wx2ZN6bNVoWCduVX/xzeLP71el2KdxgkBPAQJ0qkF41BWXbwuxX1RYqRq/XEuVHjF6PQE6dh+lh1RFJ3Y3LJk6ji15wV8HBZ8YLKY5Ij24bJUpTe7iZ4965qOejdyEk2jxBVeS3gtRkUS3TzKPbUQZZ1PzcNyG+YwETLhR0= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR04MB6560.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(366004)(376002)(346002)(396003)(136003)(39860400002)(451199015)(316002)(6916009)(478600001)(86362001)(38100700002)(6486002)(5660300002)(31696002)(41300700001)(36756003)(8936002)(66476007)(186003)(8676002)(66556008)(66946007)(2616005)(83380400001)(31686004)(6506007)(26005)(2906002)(6512007)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?vFUAFB6Rvibi55gdX5fwvaZRzLnD?= =?utf-8?q?ysAjvHjnNvKXNUifX4u3Nuuy1nGmcNiDL2ZKsl6fLe+5s2lQWJftw4WBuX/kWxmFd?= =?utf-8?q?oreZbTlf8RF998VI+F87Z0F9dyAdzAas7FXie6i+2gjlSAo5bNalRIgCAWRQGGTcd?= =?utf-8?q?h3ZhaVzfNUP9noh7o/u70VT4nt/+uZFGTC5A2+SSwTjLKP03j71+h2ItBwph7CW2B?= =?utf-8?q?0qIGEy1UsMdwHKOsODPOtaEwMhI75eVxbLGEZxgAYO+RYaiZjr45QiN8ARunti0W9?= =?utf-8?q?ucptpbLy4KPvCRNdlyTT1+nDhWXhjFgTPX6L82eD7ehfw8B2pJhFZ9zQDgHRPOo4s?= =?utf-8?q?fQwgLzbusbY/yNhJ+Eb/pXzP0w251DmlrpUG1MX31jpUUJHu+gOdxmzRE2LMbBXfm?= =?utf-8?q?SS79/QgKUuFq1pYkVK7UQmT1Rk7SKj4crQ+8BOcuSh9/BsCcZ2Kr1WHZW+NK9/uRq?= =?utf-8?q?O47zLVLC6X6LDvbUrt8X4EhJ5j8wjJsujX5DSKtn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OiMCH3ghMPVwgLOpjqIBgXeyxjEsGRQYyaa?= =?utf-8?q?9YvhVOuVcdciDyhMbLZviirW+2QfaHLay9P1daQLUI6ZKoUW4my4BZGdcBOX2Ee+n?= =?utf-8?q?HZW6bQ6ja3tNNH1PDbc0xAwuP1cklAY90NMI7XzJK1pQi6kh9IkFtSRs4sLLmnESZ?= =?utf-8?q?sSCbIlXDF5hH?= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 932caf91-e989-421e-46cf-08dad1f5a5dd X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6560.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2022 10:37:00.7531 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: RNxoLk4wo/5ml8KvFiZhDuCKh9g2CvkbnvIrvEYCjO1hiDqY/g/m4wFVBj/vwa2wKNQSjaOsjGqPN1FgJehGfQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7947 X-Spam-Status: No, score=-3029.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list <binutils.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/binutils>, <mailto:binutils-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/binutils/> List-Post: <mailto:binutils@sourceware.org> List-Help: <mailto:binutils-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/binutils>, <mailto:binutils-request@sourceware.org?subject=subscribe> From: Jan Beulich via Binutils <binutils@sourceware.org> Reply-To: Jan Beulich <jbeulich@suse.com> Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" <binutils-bounces+ouuuleilei=gmail.com@sourceware.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750826488114531390?= X-GMAIL-MSGID: =?utf-8?q?1750826488114531390?= |
Series |
gas: diagnostics for macros and some tidying
|
|
Checks
Context | Check | Description |
---|---|---|
snail/binutils-gdb-check | success | Github commit url |
Commit Message
Jan Beulich
Nov. 29, 2022, 10:36 a.m. UTC
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. --- We may want to also zap ones resulting from "# <line> <file>", albeit these anyway appear in listings only when assembling from stdin. Such zapping also would need to happen elsewhere and/or in a different manner. Slightly RFC: Am I at risk of zapping a label named "linefile" this way? (At least we can assume that this directive is the only think on a line, _if_ it is a directive, for being internal only.) If so, lifting buffer_and_nest()'s respective logic into a helper function may be the way to go.
--- a/gas/read.c +++ b/gas/read.c @@ -867,7 +867,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;