aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-01-07 10:18:46 +0100
committerMartin Liska <marxin@gcc.gnu.org>2020-01-07 09:18:46 +0000
commitfa13d9ebdc17e3ffb8f22fb55b19562f68a20fff (patch)
treea56d367cf8d82c293219f0c6f4d8c5aec6d96f63 /gcc
parenta924bffba921d568fbd65210857e1b5031776bb8 (diff)
downloadgcc-fa13d9ebdc17e3ffb8f22fb55b19562f68a20fff.zip
gcc-fa13d9ebdc17e3ffb8f22fb55b19562f68a20fff.tar.gz
gcc-fa13d9ebdc17e3ffb8f22fb55b19562f68a20fff.tar.bz2
Document cloning for the target_clone attribute.
2020-01-07 Martin Liska <mliska@suse.cz> PR ipa/83411 * doc/extend.texi: Explain cloning for target_clone attribute. From-SVN: r279948
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/doc/extend.texi6
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d4c3731..fa5101d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2020-01-07 Martin Liska <mliska@suse.cz>
+ PR ipa/83411
+ * doc/extend.texi: Explain cloning for target_clone
+ attribute.
+
+2020-01-07 Martin Liska <mliska@suse.cz>
+
PR tree-optimization/92860
* common.opt: Make in Optimization option
as it is affected by -O0, which is an Optimization
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 05ec62c..ec99c38 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -3768,6 +3768,12 @@ the @code{ifunc} attribute above) that dynamically selects a clone
suitable for current architecture. The resolver is created only if there
is a usage of a function with @code{target_clones} attribute.
+Note that any subsequent call of a function without @code{target_clone}
+from a @code{target_clone} caller will not lead to copying
+(target clone) of the called function.
+If you want to enforce such behaviour,
+we recommend declaring the calling function with the @code{flatten} attribute?
+
@item unused
@cindex @code{unused} function attribute
This attribute, attached to a function, means that the function is meant