extend.texi (Return Address): Add note explaining the side- effects of inlining on __builtin_return_address.

2002-06-10  Eric Christopher  <echristo@redhat.com>

	* doc/extend.texi (Return Address): Add note explaining the side-
	effects of inlining on __builtin_return_address.

From-SVN: r54449
This commit is contained in:
Eric Christopher 2002-06-10 19:12:10 +00:00 committed by Eric Christopher
parent aea185b3f9
commit 95b1627eb1
2 changed files with 14 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2002-06-10 Eric Christopher <echristo@redhat.com>
* doc/extend.texi (Return Address): Add note explaining the side-
effects of inlining on __builtin_return_address.
2002-06-10 Tom Tromey <tromey@redhat.com>
* Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.

View File

@ -4294,7 +4294,10 @@ This function returns the return address of the current function, or of
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.