Commit ccd2a21e by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

extend.texi (Function Attributes): Mention asm ("") as method to keep calls.

	* doc/extend.texi (Function Attributes) <noinline>: Mention
	asm ("") as method to keep calls.

From-SVN: r132182
parent f7025a01
2008-02-08 Hans-Peter Nilsson <hp@axis.com>
* doc/extend.texi (Function Attributes) <noinline>: Mention
asm ("") as method to keep calls.
2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR other/32754
......
......@@ -2519,6 +2519,17 @@ Functions with this attribute will not be so instrumented.
@cindex @code{noinline} function attribute
This function attribute prevents a function from being considered for
inlining.
@c Don't enumerate the optimizations by name here; we try to be
@c future-compatible with this mechanism.
If the function does not have side-effects, there are optimizations
other than inlining that causes function calls to be optimized away,
although the function call is live. To keep such calls from being
optimized away, put
@smallexample
asm ("");
@end smallexample
(@pxref{Extended Asm}) in the called function, to serve as a special
side-effect.
@item nonnull (@var{arg-index}, @dots{})
@cindex @code{nonnull} function attribute
......
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