This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH, rs6000] Clarify when typedef names can be used with AltiVec vector types
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: wschmidt at linux dot ibm dot com (Bill Schmidt)
- Cc: gcc-patches at gcc dot gnu dot org (GCC Patches), segher at kernel dot crashing dot org (Segher Boessenkool)
- Date: Tue, 18 Dec 2018 11:33:58 +0100 (CET)
- Subject: Re: [PATCH, rs6000] Clarify when typedef names can be used with AltiVec vector types
Bill Schmidt wrote:
> +When using vector in keyword-and-predefine mode; for example,
> +/* With -maltivec only: */
This is a bit confusing (at least to me). What does "with -maltivec only"
mean here? Just adding -maltivec will *not* switch to keyword-and-
predefine mode, as far as I can tell. Rather, to switch to that mode
you'll have to disable GNU extensions, e.g. via -std=c11, and then
include <altivec.h> to get the predefine.
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain