This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RFA: hook doc patch (14/112):
- From: Joern Rennecke <amylaar at spamcop dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 15 Jan 2010 12:25:09 -0500
- Subject: RFA: hook doc patch (14/112):
2010-01-15 Joern Rennecke <amylaar@spamcop.net>
* tm.texi (TARGET_STATIC_CHAIN): Explain return value.
Put @findices before paragraph they pertain to.
Index: tm.texi
===================================================================
--- tm.texi (revision 155367)
+++ tm.texi (working copy)
@@ -3697,16 +3706,19 @@ nested functions. This may be required
attributes that affect the calling conventions of the function and
those calling conventions use different static chain locations.
+Return an rtx for the static chain for @var{fndecl}. If @var{incoming_p}
+is true, then it should be for the callee; otherwise, for the caller.
+
The default version of this hook uses @code{STATIC_CHAIN_REGNUM} et al.
+@findex stack_pointer_rtx
+@findex frame_pointer_rtx
+@findex arg_pointer_rtx
If the static chain is passed in memory, this hook should be used to
provide rtx giving @code{mem} expressions that denote where they are stored.
Often the @code{mem} expression as seen by the caller will be at an offset
from the stack pointer and the @code{mem} expression as seen by the callee
will be at an offset from the frame pointer.
-@findex stack_pointer_rtx
-@findex frame_pointer_rtx
-@findex arg_pointer_rtx
The variables @code{stack_pointer_rtx}, @code{frame_pointer_rtx}, and
@code{arg_pointer_rtx} will have been initialized and should be used
to refer to those items.