On 10/14/25 09:54, [email protected] wrote:
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index a12855de6a6..db9728a3ce7 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -3463,12 +3463,41 @@ Function Attributes}, @ref{PowerPC Function Attributes},
  @ref{ARM Function Attributes}, @ref{AArch64 Function Attributes},
  and @ref{S/390 Function Attributes} for details.
+On targets supporting @code{target} function multiversioning (x86), when using
+C++, you can declare multiple functions with the same signatures but different
+@code{target} attribute values, and the correct version will be chosen by the
+dynamic linker. In the example below, two function versions will be produced
+with differing mangling. Additionally an ifunc resolver will be created to
+select the correct version to populate the @code{func} symbol.

This paragraph needs to be rewritten in the present tense, e.g. change "will be" to "is" or "are" as appropriate. I have no comments on the rest of the patch, so OK with those changes.

-Sandra

Reply via email to