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: Bill Schmidt <wschmidt at linux dot ibm dot com>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Segher Boessenkool <segher at kernel dot crashing dot org>
- Date: Tue, 18 Dec 2018 07:47:05 -0600
- Subject: Re: [PATCH, rs6000] Clarify when typedef names can be used with AltiVec vector types
- References: <20181218134329.90181D803BA@oc3748833570.ibm.com>
On 12/18/18 7:43 AM, Ulrich Weigand wrote:
> 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
>
Thanks! Committed as r267232.
Bill