diff options
author | Richard Biener <rguenther@suse.de> | 2014-07-16 07:53:59 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2014-07-16 07:53:59 +0000 |
commit | 3defdb14996a8256c017ea31f2d2649fbe7156ab (patch) | |
tree | 87f25894f80a92cf20d29fbcbea174ccf9e09406 | |
parent | 408210e9e58114d648876e84d21edaccf156d6f4 (diff) | |
download | gcc-3defdb14996a8256c017ea31f2d2649fbe7156ab.tar.gz |
re PR web/61782 (always_inline incorrectly documented)
2014-07-16 Richard Biener <rguenther@suse.de>
PR other/61782
* doc/extend.texi (always_inline): Clarify.
From-SVN: r212581
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/doc/extend.texi | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6cd6e8c900d..0a44f48b1b9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-07-16 Richard Biener <rguenther@suse.de> + + PR other/61782 + * doc/extend.texi (always_inline): Clarify. + 2014-07-15 Eric Christopher <echristo@gmail.com> * doc/invoke.texi (Link Options): Document -z option. 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 |