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
This commit is contained in:
Richard Biener 2014-07-16 07:53:59 +00:00 committed by Richard Biener
parent 408210e9e5
commit 3defdb1499
2 changed files with 11 additions and 2 deletions

View 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.

View 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