Patchwork RFA: hook signture patches (8/11): TARGET_PASS_BY_REFERENCE

login
register
mail settings
Submitter Joern Rennecke
Date June 30, 2010, 2:06 a.m.
Message ID <20100629220614.pinxuzwbkkw0skss-nzlynne@webmail.spamcop.net>
Download mbox | patch
Permalink /patch/57356/
State New
Headers show

Comments

Joern Rennecke - June 30, 2010, 2:06 a.m.
2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>

	* target.def (pass_by_reference): Use DEFHOOK.
	* doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
	* doc/tm.texi: Regenerate.

Patch

Index: doc/tm.texi
===================================================================
--- doc/tm.texi	(revision 161563)
+++ doc/tm.texi	(working copy)
@@ -4089,7 +4089,7 @@  register to be used by the caller for th
 @code{FUNCTION_INCOMING_ARG}, for the called function.
 @end deftypefn
 
-@deftypefn {Target Hook} bool TARGET_PASS_BY_REFERENCE (CUMULATIVE_ARGS *@var{cum}, enum machine_mode @var{mode}, tree @var{type}, bool @var{named})
+@deftypefn {Target Hook} bool TARGET_PASS_BY_REFERENCE (CUMULATIVE_ARGS *@var{cum}, enum machine_mode @var{mode}, const_tree @var{type}, bool @var{named})
 This target hook should return @code{true} if an argument at the
 position indicated by @var{cum} should be passed by reference.  This
 predicate is queried after target independent reasons for being
Index: doc/tm.texi.in
===================================================================
--- doc/tm.texi.in	(revision 161563)
+++ doc/tm.texi.in	(working copy)
@@ -4089,7 +4089,7 @@  register to be used by the caller for th
 @code{FUNCTION_INCOMING_ARG}, for the called function.
 @end deftypefn
 
-@deftypefn {Target Hook} bool TARGET_PASS_BY_REFERENCE (CUMULATIVE_ARGS *@var{cum}, enum machine_mode @var{mode}, tree @var{type}, bool @var{named})
+@hook TARGET_PASS_BY_REFERENCE
 This target hook should return @code{true} if an argument at the
 position indicated by @var{cum} should be passed by reference.  This
 predicate is queried after target independent reasons for being
Index: target.def
===================================================================
--- target.def	(revision 161563)
+++ target.def	(working copy)
@@ -1680,8 +1669,7 @@  DEFHOOK
 /* Return true if a parameter must be passed by reference.  TYPE may
    be null if this is a libcall.  CA may be null if this query is
    from __builtin_va_arg.  */
-/* ??? The documentation disagrees on the type of 'type'.  */
-DEFHOOK_UNDOC
+DEFHOOK
 (pass_by_reference,
  "",
  bool,