diff options
Diffstat (limited to 'gcc/doc/extend.texi')
-rw-r--r-- | gcc/doc/extend.texi | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 9be3c56739c..de3a1211c73 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -1802,8 +1802,8 @@ attributes are currently defined for functions on all targets: @code{no_instrument_function}, @code{section}, @code{constructor}, @code{destructor}, @code{used}, @code{unused}, @code{deprecated}, @code{weak}, @code{malloc}, @code{alias}, @code{warn_unused_result}, -@code{nonnull}, @code{gnu_inline} and @code{externally_visible}, -@code{hot}, @code{cold}. +@code{nonnull}, @code{gnu_inline}, @code{externally_visible}, +@code{hot}, @code{cold} and @code{artificial}. Several other attributes are defined for functions on particular target systems. Other attributes, including @code{section} are supported for variables declarations (@pxref{Variable Attributes}) and @@ -1925,6 +1925,14 @@ In C++, this attribute does not depend on @code{extern} in any way, but it still requires the @code{inline} keyword to enable its special behavior. +@cindex @code{artificial} function attribute +@item artificial +This attribute is useful for small inline wrappers which if possible +should appear during debugging as a unit, depending on the debug +info format it will either mean marking the function as artificial +or using the caller location for all instructions within the inlined +body. + @cindex @code{flatten} function attribute @item flatten Generally, inlining into a function is limited. For a function marked with |