[Bug web/61782] always_inline incorrectly documented

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 15 10:17:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61782

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #3)
> Like
> 
> @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 
> independent of any restrictions that otherwise apply to inlining.
> Failure to inline such function is diagnosed as error.

Failure to inline such a function is diagnosed as an error.
                       ^                          ^^

> Note that if such function is called indirectly the compiler may

Note that if such a function is called indirectly the compiler may
                  ^

> or may not inline it dependent on optimization level and a failure

I think I'd say s/dependent/depending/ here.

> to inline an indirect call may or may not be diagnosed.



More information about the Gcc-bugs mailing list