]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ipa/111643 - clarify flatten attribute documentation
authorRichard Biener <rguenther@suse.de>
Wed, 4 Oct 2023 09:19:10 +0000 (11:19 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 5 Oct 2023 08:23:32 +0000 (10:23 +0200)
The following clarifies the flatten attribute documentation to mention
the inlining applies also to calls formed as part of inlining earlier
calls but not calls to the function itself.

PR ipa/111643
* doc/extend.texi (attribute flatten): Clarify.

gcc/doc/extend.texi

index b4770f1a149a7cc3cfb90f8afaa2b064904c2942..645c76f23e9d40118fb00a37fd3f27f4cf73ed2c 100644 (file)
@@ -3109,7 +3109,9 @@ file descriptor opened with @code{O_RDONLY}.
 @cindex @code{flatten} function attribute
 @item flatten
 Generally, inlining into a function is limited.  For a function marked with
-this attribute, every call inside this function is inlined, if possible.
+this attribute, every call inside this function is inlined including the
+calls such inlining introduces to the function (but not recursive calls
+to the function itself), if possible.
 Functions declared with attribute @code{noinline} and similar are not
 inlined.  Whether the function itself is considered for inlining depends
 on its size and the current inlining parameters.