Message ID | 20230204165033.4026-1-ed@catmur.uk |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1426636wrn; Sat, 4 Feb 2023 08:51:08 -0800 (PST) X-Google-Smtp-Source: AK7set9x04tOY1QoH5Bqvde9nTWa4JdXvneFIy/E3+A+zvWq4+zlcRihxHKSMraTr6SjOP4yyksz X-Received: by 2002:a17:906:c209:b0:879:9bf4:b88a with SMTP id d9-20020a170906c20900b008799bf4b88amr14467909ejz.77.1675529468433; Sat, 04 Feb 2023 08:51:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675529468; cv=none; d=google.com; s=arc-20160816; b=Ammsr0EvlbDgs5x6Vf+gQ/sIryUDYQQpTzwsdKLJirm8uAh7mgMS9sZ/AxJnnXkyL9 Riy4YZmbBaDkhzi5hQ/Jgf3YOqOEYWIMacSHOZumEGuQRZYy3vwBBNPnYcCpXDvu1hUr wQ/wT0ko0qZLwvmoUX2RiIOzaMoXGKv/dZDpJqpFtAGXL453DsuvIs4d6r4LEIuVYn8r H2Ka6VA713WIr+e4tmYuFqQ6dI7qwNSHqXO2rc9sd48Ff2azkK/VlZYomWcs5K34lQ2e nOyMBkRNlUE/CzXWDxT3WmlJoIXkKjCT55yH0HB8r9BRFfcwfk2kMWNTRVx6aFo6LgvN 1MMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:feedback-id :dkim-signature:dkim-signature:dmarc-filter:delivered-to; bh=+KIz6YqgJwX2I9NvDQ2rrMATAinwDp9p9dy15Y0bzuM=; b=K+oPgFpjZ9Q/WNHxo8Mf5I6LI0RIj56TELyHKjk1nWrgsJ5RmpL5YsVz5A6Pgp5bCJ CeJ/SQsBHQZpNASH3l55B9h9A5leD0xyxFg0eU7v4meMHZ4KVM6eH0tI5V0EaYMCzN5i sL+U5s7fAlWnJUbS4F+EnkNmg8Qkb+WVBSaxmvFLIV6QgTNWIAJXz3xPbvdGhaIrjU97 T6dRLh4cGS621L24E6VQ1/8MWF03aCHEGdGs0BEL3Z5wZupIjWKmyQOnDIGBq3LOfuUu lK53gh4Qqy+NKYyIr5V1hMkJ4XQNINaU8tuVEyJLs0LPSEuW8P2KGAgb1bhL9+kXw540 PLcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@catmur.uk header.s=fm3 header.b=w1GckR7v; dkim=fail header.i=@messagingengine.com header.s=fm3 header.b=Yg+z0IWD; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id fm6-20020a1709072ac600b0088a35d495a0si5994687ejc.304.2023.02.04.08.51.08 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Feb 2023 08:51:08 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=fail header.i=@catmur.uk header.s=fm3 header.b=w1GckR7v; dkim=fail header.i=@messagingengine.com header.s=fm3 header.b=Yg+z0IWD; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CDCDD3857400 for <ouuuleilei@gmail.com>; Sat, 4 Feb 2023 16:51:04 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by sourceware.org (Postfix) with ESMTPS id 461673858C52 for <gcc-patches@gcc.gnu.org>; Sat, 4 Feb 2023 16:50:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 461673858C52 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=catmur.uk Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=catmur.uk Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 2077A5C00F4; Sat, 4 Feb 2023 11:50:40 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 04 Feb 2023 11:50:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=catmur.uk; h=cc :cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm3; t=1675529440; x=1675615840; bh=+KIz6YqgJwX2I9NvDQ2rrMATA inwDp9p9dy15Y0bzuM=; b=w1GckR7vS2p99euncucsd8bxVUXbN4OstdJl8uGCK 70j5jR60FHTyrYZ9KwzDW0n/JPN3FI+l50XFrK4sIITXg22Hgs3JsXb9YWR1YOhh X46aUijatBJ3WLk2T4vuTiZgGAiL7+24rqowENV+S7TUuzRoziZ0Hd6yFE0GMSC2 KKuo4PP0B0DFeFo+ShwOB7Y0+FUeQgmoX18eiHm/vvgaVJqWrAfzdKue7ylxPeE5 QQFRcGQMlKa4dWwqxV1Da5rrM8TGjrWGsjJx6vvsQSZT0F5/ZNQxJ/Qm6DIrpVC+ ToOMjV0UXx0dEel/KX86M38BbcZ2p7pCJ87R0YZ4G2LEA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1675529440; x=1675615840; bh=+KIz6YqgJwX2I9NvDQ2rrMATAinwDp9p9dy 15Y0bzuM=; b=Yg+z0IWDjWrBEiMixOZ60E1QRfHx9vWffeJLInkO5ooWfZD6v/2 6AFN92hsNnIf/q+6efODM3i6aO+va+62/JWt+SNWR1eltriDMtV0EUgaQJGflVN4 qRLlC7kaR6vFaDCAAekzp51nduUwdopiK5XlQy6g6wTyjM1j/i4dvKJx2N75XxGT 5WPC2CIbDR/HyLF0CHitAo9kQz/JMgVVkQr5FgQD5WTAmsRsMN6PUFDshVzMI6bX 13g92eJ/lamTG4Quxq/pWRSv8ArAbvBOVsv94P72SdBgS2OIFaOYaARX8u/x/UKf QvmfK7+Y2QraxbuhaVcW/8VIzOM5CgQ1Q7Q== X-ME-Sender: <xms:34zeY_CSt145gEyKReK12qKVGmaEC2G4B9_2X5v8Lk_DfQP65ALhsA> <xme:34zeY1hMYx_Y_ux1YwDpaGycP4QlIBCbwS5nBFXpM_wO1H__BzOWTL64N8R9a_tlJ M5uo7V4IrENZDXt> X-ME-Received: <xmr:34zeY6npXjwfea6TYexIxtl8J_MODLGusRC42QnrJx221RHQoWQl6ddhNJlNCFlSanrjBBZDDfeWrghCVEs_OatE9iRBMoKThrzRhRVU84YTt3jz4J8> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudegvddgledvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpefgugcuvegrthhmuhhruceovggusegtrghtmhhurhdruhhkqeen ucggtffrrghtthgvrhhnpeeuvddtkedugeekkeegkefhjeejjeeltdekgeeitddtleffje eggefgjeejfeduueenucffohhmrghinhepugifrghrfhhsthgurdhorhhgpdhgnhhurdho rhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepvg gusegtrghtmhhurhdruhhk X-ME-Proxy: <xmx:34zeYxy_BjXGN0suhQ4RekVY-kTLitROrx_QPWLcYQH3qcGjgfkz2w> <xmx:34zeY0RLplXTaYPZBGf2aN_NNMRuAlSVW1_OwRAV7N5S_DGU8He_cw> <xmx:34zeY0bAA7tbLH1S5T_9Gl4AFFsqKVdJKk1h2bZKrd37P1MJj7JLTA> <xmx:4IzeY94yFqBjIu6ATR-0EjXJ7OTbKjd80ON4_P7_LC8SVNIaVbJvVQ> Feedback-ID: i5729427b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 4 Feb 2023 11:50:38 -0500 (EST) From: Ed Catmur <ed@catmur.uk> To: gcc-patches@gcc.gnu.org Cc: Ed Catmur <ed@catmur.uk> Subject: [PATCH v3] emit DW_AT_name for DW_TAG_GNU_formal_parameter_pack [PR70536] Date: Sat, 4 Feb 2023 17:50:33 +0100 Message-Id: <20230204165033.4026-1-ed@catmur.uk> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_SHORT, RCVD_IN_DNSWL_LOW, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756919987356840020?= X-GMAIL-MSGID: =?utf-8?q?1756919987356840020?= |
Series |
[v3] emit DW_AT_name for DW_TAG_GNU_formal_parameter_pack [PR70536]
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Ed Catmur
Feb. 4, 2023, 4:50 p.m. UTC
Per http://wiki.dwarfstd.org/index.php?title=C%2B%2B0x:_Variadic_templates DW_TAG_GNU_formal_parameter_pack should have a DW_AT_name: 17$: DW_TAG_formal_parameter_pack DW_AT_name("args") 18$: DW_TAG_formal_parameter ! no DW_AT_name attribute DW_AT_type(reference to 13$) (...) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70536 --- gcc/dwarf2out.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Ping. On Sat, 4 Feb 2023, at 10:50, Ed Catmur wrote: > Per > http://wiki.dwarfstd.org/index.php?title=C%2B%2B0x:_Variadic_templates > DW_TAG_GNU_formal_parameter_pack should have a DW_AT_name: > > 17$: DW_TAG_formal_parameter_pack > DW_AT_name("args") > 18$: DW_TAG_formal_parameter > ! no DW_AT_name attribute > DW_AT_type(reference to 13$) > (...) > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70536 > --- > gcc/dwarf2out.cc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gcc/dwarf2out.cc b/gcc/dwarf2out.cc > index 1f39df3b1e2..462328acd9f 100644 > --- a/gcc/dwarf2out.cc > +++ b/gcc/dwarf2out.cc > @@ -23041,7 +23041,7 @@ gen_formal_parameter_pack_die (tree parm_pack, > && subr_die); > > parm_pack_die = new_die (DW_TAG_GNU_formal_parameter_pack, subr_die, > parm_pack); > - add_src_coords_attributes (parm_pack_die, parm_pack); > + add_name_and_src_coords_attributes (parm_pack_die, parm_pack); > > for (arg = pack_arg; arg; arg = DECL_CHAIN (arg)) > { > -- > 2.34.1
diff --git a/gcc/dwarf2out.cc b/gcc/dwarf2out.cc index 1f39df3b1e2..462328acd9f 100644 --- a/gcc/dwarf2out.cc +++ b/gcc/dwarf2out.cc @@ -23041,7 +23041,7 @@ gen_formal_parameter_pack_die (tree parm_pack, && subr_die); parm_pack_die = new_die (DW_TAG_GNU_formal_parameter_pack, subr_die, parm_pack); - add_src_coords_attributes (parm_pack_die, parm_pack); + add_name_and_src_coords_attributes (parm_pack_die, parm_pack); for (arg = pack_arg; arg; arg = DECL_CHAIN (arg)) {