* target.def (enum_va_list_p): Use DEFHOOK.
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Jun 2010 17:53:44 +0000 (17:53 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 Jun 2010 17:53:44 +0000 (17:53 +0000)
        * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
        Rename ptype to ptree.
        * doc/tm.texi: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161621 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/doc/tm.texi
gcc/doc/tm.texi.in
gcc/target.def

index 8fbaf93..e5950da 100644 (file)
        * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
        * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
 
+       * 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.
+
 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
 
        * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
index 5845829..12eba30 100644 (file)
@@ -4268,13 +4268,13 @@ This hook returns a type node for @code{va_list} for the target.
 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 239b22c..f41e144 100644 (file)
@@ -4268,13 +4268,13 @@ This hook returns a type node for @code{va_list} for the target.
 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 2c83a08..badc975 100644 (file)
@@ -1486,8 +1486,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),