diff options
author | Joern Rennecke <joern.rennecke@embecosm.com> | 2010-06-30 17:53:44 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2010-06-30 18:53:44 +0100 |
commit | 07a5b2bc7791ed01de9000b1f3af59a9ee7dddd5 (patch) | |
tree | 711769b872b08b7bff3f71040a847ee2def8f341 /gcc | |
parent | 89356d17f169556c0ac22cf962e898d8f3c43a1a (diff) | |
download | gcc-07a5b2bc7791ed01de9000b1f3af59a9ee7dddd5.zip gcc-07a5b2bc7791ed01de9000b1f3af59a9ee7dddd5.tar.gz gcc-07a5b2bc7791ed01de9000b1f3af59a9ee7dddd5.tar.bz2 |
target.def (enum_va_list_p): Use DEFHOOK.
* 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.
From-SVN: r161621
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/doc/tm.texi | 6 | ||||
-rw-r--r-- | gcc/doc/tm.texi.in | 6 | ||||
-rw-r--r-- | gcc/target.def | 3 |
4 files changed, 12 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8fbaf93..e5950da 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -10,6 +10,11 @@ * 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 diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 5845829..12eba30 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -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. diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index 239b22c..f41e144 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -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. diff --git a/gcc/target.def b/gcc/target.def index 2c83a08..badc975 100644 --- a/gcc/target.def +++ b/gcc/target.def @@ -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), |