[PATCH, rs6000] Clarify when typedef names can be used with AltiVec vector types

Ulrich Weigand uweigand@de.ibm.com
Tue Dec 18 13:43:00 GMT 2018


Bill Schmidt wrote:

> +@item
> +When using @code{vector} in keyword-and-predefine mode; for example,
> +
> +@smallexample
> +typedef signed short int16;
> +vector int16 data;
> +@end smallexample
> +
> +Note that keyword-and-predefine mode is enabled by disabling GNU
> +extensions (e.g., by using @code{-std=c11}) and including
> +@code{<altivec.h>}.
> +@end itemize

This looks correct to me, and I've just verified that the example
does indeed build with -std=c11 and #include <altivec.h> and fails
to build without either of these.

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU/Linux compilers and toolchain
  Ulrich.Weigand@de.ibm.com



More information about the Gcc-patches mailing list