From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail8.parnet.fi (mail8.parnet.fi [77.234.108.134]) by sourceware.org (Postfix) with ESMTPS id 79F7138582AD for ; Tue, 25 Oct 2022 08:21:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 79F7138582AD Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=martin.st Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=martin.st Received: from mail9.parnet.fi (mail9.parnet.fi [77.234.108.21]) by mail8.parnet.fi with ESMTP id 29P8LocI008634-29P8LocJ008634; Tue, 25 Oct 2022 11:21:50 +0300 Received: from foo.martin.st (host-97-187.parnet.fi [77.234.97.187]) by mail9.parnet.fi (Postfix) with ESMTPS id 15282A1435; Tue, 25 Oct 2022 11:21:49 +0300 (EEST) Date: Tue, 25 Oct 2022 11:21:49 +0300 (EEST) From: =?ISO-8859-15?Q?Martin_Storsj=F6?= To: Mark Harmstone cc: gcc-patches@gcc.gnu.org Subject: Re: [PATCH] Add -gcodeview option In-Reply-To: <1842c5cf-ab33-c9f5-cee0-9d91512a330a@harmstone.com> Message-ID: References: <20221024002828.28861-1-mark@harmstone.com> <1842c5cf-ab33-c9f5-cee0-9d91512a330a@harmstone.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-611012432-1666686110=:1659" X-FE-Policy-ID: 3:14:2:SYSTEM X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,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 List-Id: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-611012432-1666686110=:1659 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Tue, 25 Oct 2022, Mark Harmstone wrote: > On 24/10/22 12:08, Martin Storsjö wrote: >> Hmm, what does this end up passing to the linker in the end - does it just >> pass "-pdb="? (What does the "*" parameter do here?) If that's the case - >> that sounds reasonable - assuming that if a user passes an extra >> -Wl,--pdb,myspecificname.pdb, that would take precedence (i.e. be passed >> after the compiler's default one). > > That's right. The "*" means "all languages". Ok, great. Btw, stylistically, should we strive towards using double dashes for the pdb option? I think that's the most canonical way for such getopt options (even though it doesn't make any practical difference). I've started trying to update various users to prefer that form (together with preferring -Wl,--pdb= over -Wl,--pdb,) and probably will send a few more. // Martin --8323329-611012432-1666686110=:1659--