From patchwork Fri Mar 3 19:43:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Buclaw X-Patchwork-Id: 64064 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp595263wrd; Fri, 3 Mar 2023 11:44:35 -0800 (PST) X-Google-Smtp-Source: AK7set8foJK2Jztn7rIYZo2aepJkwJ9iPQoJ/wJlj43+7PMRdJo+qarRgL4P3C87XAxmdXT3Dtkg X-Received: by 2002:a05:6402:383:b0:4ad:1e35:771f with SMTP id o3-20020a056402038300b004ad1e35771fmr2742956edv.35.1677872675465; Fri, 03 Mar 2023 11:44:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677872675; cv=none; d=google.com; s=arc-20160816; b=BiQhwFki+5JL20Z8dOvm8VI9U77KeqGO7DbH1XLPMvQUL5AH+q/tBbthvnBSHvtO98 T2ClAvKCDiKVr3VjXiMZNU1mCO+NnLVf/EaUUs2yswnvERGMX2OxAjYI8CWFw7ddALqC U6bGhJvJEKOgkN6x6N5dUteS6VhrPuWCrn6OkzsBrvMyBQzXXiJvRpweVrYIX6EFDQIw 1awj/I5P+VXzyBa+cTEKpJxfrQ50cDkYPNr0l1/p+8emjvehrY5/l8zAa7+YCOwKC2xR FArwoBBtD3xQpCFsYiWPxCP8ijZ8xCuUWg6LklSIbrWtb0vcEyrP+RzhsuvCpP0d+wYT RcrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=YDqX6ukectrW6nBKu2gzXjcnbJr5DDNnNAgNaN7BT+Q=; b=pRMzzLnmuhm1Bxi0zThWLdZqhisEsE/KXVFzr5mntlsKBkfkgXvbF0rlRAIg7fH06z wBvEAHaPOZLoWl652KAeYLEEAsusU+m9JFbeYfxAj0YgxLkoh/RBaxrz8CNbgXTL2IHH wEXfMJkoVKr6/3XY8eYvsxDPJwohV5AwxsTfG85Nwbi/6MVsTDfNfCVhp1Reg/SemoSq fTHgy+czdzuE7Ct15rPPp+g4w5KMa8Ax2F/mnWrv0jHU9i0nU6y6s6zamJpFhjipv90j ujnZH/bf1ZPyZzRfFys8ufIpc9yWE6uCLwS3Dq6quFuS/imfseqAePxCSfc65yDLdDjM WziA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=K7MdJNyI; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id a17-20020aa7d751000000b004bf78f60d01si1587287eds.226.2023.03.03.11.44.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 11:44:35 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=K7MdJNyI; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A566C3857026 for ; Fri, 3 Mar 2023 19:44:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A566C3857026 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677872671; bh=YDqX6ukectrW6nBKu2gzXjcnbJr5DDNnNAgNaN7BT+Q=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=K7MdJNyIBU+YqqdYPiLB5vBdLNrQEraLM0JiWL8D0I5i7jEiHxlxPRBN2YiuLghft uLONXmL7InqzB1Ez2CTOac/pnqVsy7uF7sG9NuYkQbJOGkjDs/XVbW2m1UVSOWhazm c1gQNme2js/Vceo7am+aBYSQCef0V1vcLyVjXntQ= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [IPv6:2001:67c:2050:0:465::101]) by sourceware.org (Postfix) with ESMTPS id 25E7F3858D28 for ; Fri, 3 Mar 2023 19:43:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 25E7F3858D28 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4PSz170FDMz9sml; Fri, 3 Mar 2023 20:43:39 +0100 (CET) To: gcc-patches@gcc.gnu.org Cc: Iain Buclaw Subject: [committed] d: Document that TypeInfo-based va_arg is not implemented [PR108763] Date: Fri, 3 Mar 2023 20:43:33 +0100 Message-Id: <20230303194333.559903-1-ibuclaw@gdcproject.org> MIME-Version: 1.0 X-Spam-Status: No, score=-13.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Iain Buclaw via Gcc-patches From: Iain Buclaw Reply-To: Iain Buclaw Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759377018811833815?= X-GMAIL-MSGID: =?utf-8?q?1759377018811833815?= Hi, GDC's run-time library doesn't implement the RTTI-based overload of va_arg, document it on the missing features page. Bootstrapped and regression tested, committed to mainline. Regards, Iain. --- PR d/108763 gcc/d/ChangeLog: * implement-d.texi (Missing Features): Document that TypeInfo-based va_arg is not implemented. --- gcc/d/implement-d.texi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gcc/d/implement-d.texi b/gcc/d/implement-d.texi index 89a17916a83..039e5fbd24e 100644 --- a/gcc/d/implement-d.texi +++ b/gcc/d/implement-d.texi @@ -2511,4 +2511,10 @@ version (GNU) @} @end smallexample +@item TypeInfo-based va_arg +The Digital Mars D compiler implements a version of @code{core.vararg.va_arg} +that accepts a run-time @code{TypeInfo} argument for use when the static type +is not known. This function is not implemented by GNU D. It is more portable +to use variadic template functions instead. + @end table