This is the mail archive of the
gcc-patches@gcc.gnu.org
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:
> +@item
> +When using vector in keyword-and-predefine mode; for example,
> +
> +@smallexample
> +/* 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.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com