summaryrefslogtreecommitdiff
path: root/gcc/doc/extend.texi
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-16 07:53:59 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2014-07-16 07:53:59 +0000
commitbcef1966c44dd5971abaf8139317afab6db0a548 (patch)
tree87f25894f80a92cf20d29fbcbea174ccf9e09406 /gcc/doc/extend.texi
parentf764e822f24cacf78bdde27394a1739de6005262 (diff)
downloadgcc-bcef1966c44dd5971abaf8139317afab6db0a548.tar.gz
2014-07-16 Richard Biener <rguenther@suse.de>
PR other/61782 * doc/extend.texi (always_inline): Clarify. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212581 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc/extend.texi')
-rw-r--r--gcc/doc/extend.texi8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index cdfcce77163..a47b3163bc0 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -2307,8 +2307,12 @@ to 8.
@item always_inline
@cindex @code{always_inline} function attribute
Generally, functions are not inlined unless optimization is specified.
-For functions declared inline, this attribute inlines the function even
-if no optimization level is specified.
+For functions declared inline, this attribute inlines the function
+independent of any restrictions that otherwise apply to inlining.
+Failure to inline such a function is diagnosed as an error.
+Note that if such a function is called indirectly the compiler may
+or may not inline it depending on optimization level and a failure
+to inline an indirect call may or may not be diagnosed.
@item gnu_inline
@cindex @code{gnu_inline} function attribute