[PATCH] doc: mention -mprefer-vector-width in target attrs

Marek Polacek polacek@redhat.com
Wed Feb 3 15:34:13 GMT 2021


On Wed, Feb 03, 2021 at 04:15:24PM +0100, Martin Liška wrote:
> The patch documents -mprefer-vector-width which is a valid target attribute/pragma.

> diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
> index 8daa1c67974..a14875cec37 100644
> --- a/gcc/doc/extend.texi
> +++ b/gcc/doc/extend.texi
> @@ -7020,6 +7020,28 @@ On x86 targets, the @code{fentry_section} attribute sets the name
>  of the section to record function entry instrumentation calls in when
>  enabled with @option{-pg -mrecord-mcount}
> +@item prefer-vector-width=@var{OPT}
> +@cindex @code{prefer-vector-width} function attribute, x86
> +On x86 targets, the @code{prefer-vector-width} attribute inform the

"informs"

> +compiler to use @var{OPT}-bit vector width in instructions
> +instead of default on the selected platform.

"the default"

Marek



More information about the Gcc-patches mailing list