diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2010-05-28 11:58:35 +0000 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2010-05-28 13:58:35 +0200 |
commit | d4048208a4c81eca9372664003b09922b9d5d1aa (patch) | |
tree | c3d191d473097e189086bc6f9d252e42b7ae28ce /gcc/doc | |
parent | 40dcd88bb984adbf44039ecef933bd061a810e06 (diff) | |
download | gcc-d4048208a4c81eca9372664003b09922b9d5d1aa.zip gcc-d4048208a4c81eca9372664003b09922b9d5d1aa.tar.gz gcc-d4048208a4c81eca9372664003b09922b9d5d1aa.tar.bz2 |
c-common.c (c_common_nodes_and_builtins): Replace use of TARGET_ENUM_VA_LIST by target hook enum_va_list.
2010-05-28 Kai Tietz <kai.tietz@onevision.com>
* c-common.c (c_common_nodes_and_builtins): Replace use
of TARGET_ENUM_VA_LIST by target hook enum_va_list.
* config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
to ix86_enum_va_list.
* config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
* doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
(TARGET_ENUM_VA_LIST_P): Add hook description.
* target-def.h (TARGET_ENUM_VA_LIST_P): Added.
* target.h (gcc_target): Add enum_va_list hook.
From-SVN: r159966
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/tm.texi | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index de56de6..6e68d2e 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -4298,6 +4298,20 @@ 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}) +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 +variable. +The arguments @var{pname} and @var{ptype} 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. +Otherwise the @var{IDX} should be increased for the next call of this +macro to iterate through all types. +@end deftypefn + @deftypefn {Target Hook} tree TARGET_FN_ABI_VA_LIST (tree @var{fndecl}) This hook returns the va_list type of the calling convention specified by @var{fndecl}. @@ -4494,20 +4508,6 @@ should recognize only the caller's register numbers. If this hook is not defined, then FUNCTION_VALUE_REGNO_P will be used. @end deftypefn -@defmac TARGET_ENUM_VA_LIST (@var{idx}, @var{pname}, @var{ptype}) -This target macro 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 -variable. -The arguments @var{pname} and @var{ptype} 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. -Otherwise the @var{IDX} should be increased for the next call of this -macro to iterate through all types. -@end defmac - @defmac APPLY_RESULT_SIZE Define this macro if @samp{untyped_call} and @samp{untyped_return} need more space than is implied by @code{FUNCTION_VALUE_REGNO_P} for |