This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]