re PR web/61782 (always_inline incorrectly documented)
authorRichard Biener <rguenther@suse.de>
Wed, 16 Jul 2014 07:53:59 +0000 (07:53 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 16 Jul 2014 07:53:59 +0000 (07:53 +0000)
2014-07-16  Richard Biener  <rguenther@suse.de>

PR other/61782
* doc/extend.texi (always_inline): Clarify.

From-SVN: r212581

gcc/ChangeLog
gcc/doc/extend.texi

index 6cd6e8c900d707ab49f76148aacc3d6cd3198639..0a44f48b1b9a3ced132bdd9f309680d1a462381c 100644 (file)
@@ -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.
index cdfcce77163ebd5cac0a615068958a89522b540b..a47b3163bc0ffc0ce35ecd3b98a69308303165bc 100644 (file)
@@ -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