diff options
Diffstat (limited to 'gcc/doc/tm.texi')
-rw-r--r-- | gcc/doc/tm.texi | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index a2c756261b2..e328210385c 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -3737,12 +3737,12 @@ return @code{@var{regno}}. @c prevent bad page break with this line This is about eliminating the frame pointer and arg pointer. -@defmac FRAME_POINTER_REQUIRED -A C expression which is @code{true} if a function must have and use a frame -pointer. This expression is evaluated in the reload pass. If its value is -@code{true} the function will have a frame pointer. +@deftypefn {Target Hook} bool TARGET_FRAME_POINTER_REQUIRED (void) +This target hook should return @code{true} if a function must have and use +a frame pointer. This target hook is called in the reload pass. If its return +value is @code{true} the function will have a frame pointer. -The expression can in principle examine the current function and decide +This target hook can in principle examine the current function and decide according to the facts, but on most machines the constant @code{false} or the constant @code{true} suffices. Use @code{false} when the machine allows code to be generated with no frame pointer, and doing so saves some time or space. @@ -3752,15 +3752,15 @@ pointer. In certain cases, the compiler does not know how to produce valid code without a frame pointer. The compiler recognizes those cases and automatically gives the function a frame pointer regardless of what -@code{FRAME_POINTER_REQUIRED} says. You don't need to worry about +@code{TARGET_FRAME_POINTER_REQUIRED} returns. You don't need to worry about them. In a function that does not require a frame pointer, the frame pointer register can be allocated for ordinary usage, unless you mark it as a fixed register. See @code{FIXED_REGISTERS} for more information. -Default value is @code{false}. -@end defmac +Default return value is @code{false}. +@end deftypefn @findex get_frame_size @defmac INITIAL_FRAME_POINTER_OFFSET (@var{depth-var}) @@ -3772,7 +3772,7 @@ registers @code{regs_ever_live} and @code{call_used_regs}. If @code{ELIMINABLE_REGS} is defined, this macro will be not be used and need not be defined. Otherwise, it must be defined even if -@code{FRAME_POINTER_REQUIRED} is defined to always be true; in that +@code{TARGET_FRAME_POINTER_REQUIRED} is always return true; in that case, you may set @var{depth-var} to anything. @end defmac |