From 00a1fec861e2c92779274a5961578fc8aa96b426 Mon Sep 17 00:00:00 2001 From: amylaar Date: Wed, 30 Jun 2010 18:08:56 +0000 Subject: [PATCH] * target.def (resolve_overloaded_builtin): Rename params to arglist. Use DEFHOOK. * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook. * doc/tm.texi: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161626 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/doc/tm.texi | 1 - gcc/doc/tm.texi.in | 3 +-- gcc/target.def | 6 ++---- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e5e1cef..507e12b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -33,6 +33,11 @@ * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook. * doc/tm.texi: Regenerate. + * target.def (resolve_overloaded_builtin): Rename params to arglist. + Use DEFHOOK. + * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook. + * doc/tm.texi: Regenerate. + 2010-06-30 Manuel López-Ibáñez * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 1b5033b..fe72fd1 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -10792,7 +10792,6 @@ built-in function. @end deftypefn @deftypefn {Target Hook} tree TARGET_RESOLVE_OVERLOADED_BUILTIN (unsigned int @var{loc}, tree @var{fndecl}, void *@var{arglist}) - Select a replacement for a machine specific built-in function that was set up by @samp{TARGET_INIT_BUILTINS}. This is done @emph{before} regular type checking, and so allows the target to diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index feee99d..6949d1b 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -10782,8 +10782,7 @@ ignored. This function should return the result of the call to the built-in function. @end deftypefn -@deftypefn {Target Hook} tree TARGET_RESOLVE_OVERLOADED_BUILTIN (unsigned int @var{loc}, tree @var{fndecl}, void *@var{arglist}) - +@hook TARGET_RESOLVE_OVERLOADED_BUILTIN Select a replacement for a machine specific built-in function that was set up by @samp{TARGET_INIT_BUILTINS}. This is done @emph{before} regular type checking, and so allows the target to diff --git a/gcc/target.def b/gcc/target.def index e4b2fb5..a4e5fcd 100644 --- a/gcc/target.def +++ b/gcc/target.def @@ -1030,12 +1030,10 @@ DEFHOOK implement a crude form of function overloading. The result is a complete expression that implements the operation. PARAMS really has type VEC(tree,gc)*, but we don't want to include tree.h here. */ - /* ??? params is called differently in the documentation, and we can't - fix that because of GPL / GFDL incompatibility. */ -DEFHOOK_UNDOC +DEFHOOK (resolve_overloaded_builtin, "", - tree, (unsigned int /*location_t*/ loc, tree fndecl, void *params), NULL) + tree, (unsigned int /*location_t*/ loc, tree fndecl, void *arglist), NULL) /* Fold a target-specific builtin. */ DEFHOOK -- 2.7.4