Commit 95b1627e by Eric Christopher Committed by Eric Christopher

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

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
parent aea185b3
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> 2002-06-10 Tom Tromey <tromey@redhat.com>
* Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h. * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
......
...@@ -4294,7 +4294,10 @@ This function returns the return address of the current function, or of ...@@ -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 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 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 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. The @var{level} argument must be a constant integer.
...@@ -4765,7 +4768,7 @@ instructions, but allow the compiler to schedule those calls. ...@@ -4765,7 +4768,7 @@ instructions, but allow the compiler to schedule those calls.
These built-in functions are available for the Alpha family of These built-in functions are available for the Alpha family of
processors, depending on the command-line switches used. processors, depending on the command-line switches used.
The following built-in functions are always available. They The following built-in functions are always available. They
all generate the machine instruction that is part of the name. all generate the machine instruction that is part of the name.
@example @example
...@@ -6175,7 +6178,7 @@ subsequent functions. ...@@ -6175,7 +6178,7 @@ subsequent functions.
The RS/6000 and PowerPC targets define one pragma for controlling The RS/6000 and PowerPC targets define one pragma for controlling
whether or not the @code{longcall} attribute is added to function whether or not the @code{longcall} attribute is added to function
declarations by default. This pragma overrides the @option{-mlongcall} declarations by default. This pragma overrides the @option{-mlongcall}
option, but not the @code{longcall} and @code{shortcall} attributes. option, but not the @code{longcall} and @code{shortcall} attributes.
@xref{RS/6000 and PowerPC Options}, for more information about when long @xref{RS/6000 and PowerPC Options}, for more information about when long
calls are and are not necessary. calls are and are not necessary.
...@@ -6258,7 +6261,7 @@ is supported. ...@@ -6258,7 +6261,7 @@ is supported.
This pragma renames all subsequent function and variable declarations This pragma renames all subsequent function and variable declarations
such that @var{string} is prepended to the name. This effect may be such that @var{string} is prepended to the name. This effect may be
terminated by using another @code{extern_prefix} pragma with the terminated by using another @code{extern_prefix} pragma with the
empty string. empty string.
This pragma is similar in intent to to the asm labels extension This pragma is similar in intent to to the asm labels extension
...@@ -6450,7 +6453,7 @@ one thread. ...@@ -6450,7 +6453,7 @@ one thread.
New text after paragraph 7 New text after paragraph 7
@quotation @quotation
It is unspecified whether additional action must be taken to It is unspecified whether additional action must be taken to
ensure when and whether side effects are visible to other threads. ensure when and whether side effects are visible to other threads.
@end quotation @end quotation
...@@ -6466,7 +6469,7 @@ Add after paragraph 5 ...@@ -6466,7 +6469,7 @@ Add after paragraph 5
@quotation @quotation
The thread that begins execution at the @code{main} function is called The thread that begins execution at the @code{main} function is called
the @dfn{main thread}. It is implementation defined how functions the @dfn{main thread}. It is implementation defined how functions
beginning threads other than the main thread are designated or typed. beginning threads other than the main thread are designated or typed.
A function so designated, as well as the @code{main} function, is called A function so designated, as well as the @code{main} function, is called
a @dfn{thread startup function}. It is implementation defined what a @dfn{thread startup function}. It is implementation defined what
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment