diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2008-02-08 02:43:52 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@gcc.gnu.org> | 2008-02-08 02:43:52 +0000 |
commit | ccd2a21e3be089003826a9fd46a821925c9a6168 (patch) | |
tree | c17b5693da59ac71c0ca2abd41fb51d54bcae316 /gcc | |
parent | f7025a011126dc6206309ac580d61c14005c62e4 (diff) | |
download | gcc-ccd2a21e3be089003826a9fd46a821925c9a6168.zip gcc-ccd2a21e3be089003826a9fd46a821925c9a6168.tar.gz gcc-ccd2a21e3be089003826a9fd46a821925c9a6168.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/doc/extend.texi | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3b8e28f..c60e891 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 7711e1f..b29e5b2 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -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 |