aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-10-04 11:19:10 +0200
committerRichard Biener <rguenther@suse.de>2023-10-05 10:23:32 +0200
commitffbd7c3d0fd1b9b10ef5a0f2b2e64bd234620167 (patch)
tree7a2d84e5fe700fec2af87f2a62ba116efb9e7ddd /gcc
parentbf2e66e3ee27fac4ae81416561dbf6b4d71141a4 (diff)
downloadgcc-ffbd7c3d0fd1b9b10ef5a0f2b2e64bd234620167.zip
gcc-ffbd7c3d0fd1b9b10ef5a0f2b2e64bd234620167.tar.gz
gcc-ffbd7c3d0fd1b9b10ef5a0f2b2e64bd234620167.tar.bz2
ipa/111643 - clarify flatten attribute documentation
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/doc/extend.texi4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index b4770f1..645c76f 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -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.