[PATCH] Documentation patch for __builtin_return_address

Geoff Keating geoffk@geoffk.org
Fri Jun 7 21:27:00 GMT 2002


> From: Eric Christopher <echristo@redhat.com>
> Date: 07 Jun 2002 20:17:33 -0700

> Like this?

Yes, this is OK.

> Index: extend.texi
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/doc/extend.texi,v
> retrieving revision 1.78
> diff -u -p -w -r1.78 extend.texi
> --- extend.texi	4 Jun 2002 22:45:53 -0000	1.78
> +++ extend.texi	8 Jun 2002 03:18:44 -0000
> @@ -4294,7 +4294,10 @@ This function returns the return address
>  one of its callers.  The @var{level} argument is number of frames to
>  scan up the call stack.  A value of @code{0} yields the return address
>  of the current function, a value of @code{1} yields the return address
> -of the caller of the current function, and so forth.
> +of the caller of the current function, and so forth. When inlining
> +the expected behavior is that the function will return the address of
> +the function that will be returned to.  To work around this behavior use
> +the @code{noinline} function attribute.
>  
>  The @var{level} argument must be a constant integer.
>  
> 


-- 
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>



More information about the Gcc-patches mailing list