From patchwork Wed Jun 30 02:00:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joern Rennecke X-Patchwork-Id: 57352 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 5AAB1B6F15 for ; Wed, 30 Jun 2010 12:00:16 +1000 (EST) Received: (qmail 27338 invoked by alias); 30 Jun 2010 02:00:13 -0000 Received: (qmail 27330 invoked by uid 22791); 30 Jun 2010 02:00:12 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL, BAYES_00, MIME_QP_LONG_LINE, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from c60.cesmail.net (HELO c60.cesmail.net) (216.154.195.49) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 30 Jun 2010 02:00:07 +0000 Received: from unknown (HELO delta2) ([192.168.1.50]) by c60.cesmail.net with ESMTP; 29 Jun 2010 22:00:06 -0400 Received: from 78.149.179.58 ([78.149.179.58]) by webmail.spamcop.net (Horde MIME library) with HTTP; Tue, 29 Jun 2010 22:00:06 -0400 Message-ID: <20100629220006.gomujpps5c4k88sg-nzlynne@webmail.spamcop.net> Date: Tue, 29 Jun 2010 22:00:06 -0400 From: Joern Rennecke To: gcc-patches@gcc.gnu.org Subject: RFA: hook signture patches (4/11): TARGET_ENUM_VA_LIST_P MIME-Version: 1.0 User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 2010-06-29 Joern Rennecke * target.def (enum_va_list_p): Use DEFHOOK. * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook. Rename ptype to ptree. * doc/tm.texi: Regenerate. Index: doc/tm.texi =================================================================== --- doc/tm.texi (revision 161563) +++ doc/tm.texi (working copy) @@ -4268,13 +4268,13 @@ This hook returns a type node for @code{ The default version of the hook returns @code{void*}. @end deftypefn -@deftypefn {Target Hook} int TARGET_ENUM_VA_LIST_P (int @var{idx}, const char ** @var{pname}, tree @var{ptype}) +@deftypefn {Target Hook} int TARGET_ENUM_VA_LIST_P (int @var{idx}, const char **@var{pname}, tree *@var{ptree}) This target hook is used in function @code{c_common_nodes_and_builtins} to iterate through the target specific builtin types for va_list. The variable @var{idx} is used as iterator. @var{pname} has to be a pointer -to a @code{const char *} and @var{ptype} a pointer to a @code{tree} typed +to a @code{const char *} and @var{ptree} a pointer to a @code{tree} typed variable. -The arguments @var{pname} and @var{ptype} are used to store the result of +The arguments @var{pname} and @var{ptree} are used to store the result of this macro and are set to the name of the va_list builtin type and its internal type. If the return value of this macro is zero, then there is no more element. Index: doc/tm.texi.in =================================================================== --- doc/tm.texi.in (revision 161563) +++ doc/tm.texi.in (working copy) @@ -4268,13 +4268,13 @@ This hook returns a type node for @code{ The default version of the hook returns @code{void*}. @end deftypefn -@deftypefn {Target Hook} int TARGET_ENUM_VA_LIST_P (int @var{idx}, const char ** @var{pname}, tree @var{ptype}) +@hook TARGET_ENUM_VA_LIST_P This target hook is used in function @code{c_common_nodes_and_builtins} to iterate through the target specific builtin types for va_list. The variable @var{idx} is used as iterator. @var{pname} has to be a pointer -to a @code{const char *} and @var{ptype} a pointer to a @code{tree} typed +to a @code{const char *} and @var{ptree} a pointer to a @code{tree} typed variable. -The arguments @var{pname} and @var{ptype} are used to store the result of +The arguments @var{pname} and @var{ptree} are used to store the result of this macro and are set to the name of the va_list builtin type and its internal type. If the return value of this macro is zero, then there is no more element. Index: target.def =================================================================== --- target.def (revision 161563) +++ target.def (working copy) @@ -1488,8 +1478,7 @@ DEFHOOK std_build_builtin_va_list) /* Enumerate the va list variants. */ -/* ??? The documentation gets the type of ptree wrong. */ -DEFHOOK_UNDOC +DEFHOOK (enum_va_list_p, "", int, (int idx, const char **pname, tree *ptree),