From: wschmidt Date: Tue, 18 Dec 2018 13:46:10 +0000 (+0000) Subject: 2018-12-18 Bill Schmidt X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=776cdb864cbdb67086a9783ecf670750286d53a6;p=thirdparty%2Fgcc.git 2018-12-18 Bill Schmidt * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions): Describe when a typedef name can be used as the type specifier for a vector type, and when it cannot. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267232 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5c8fc7e830d9..7d97a05e6cd4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-12-18 Bill Schmidt + + * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions): + Describe when a typedef name can be used as the type specifier for + a vector type, and when it cannot. + 2018-12-18 Jozef Lawrynowicz * config/msp430/msp430.h: Define TARGET_VTABLE_ENTRY_ALIGN. diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 5d8fc94aaa7c..1849120b7bd1 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -16616,7 +16616,30 @@ disabled. To use them, you must include @code{} instead. @item GCC allows using a @code{typedef} name as the type specifier for a -vector type. +vector type, but only under the following circumstances: + +@itemize @bullet + +@item +When using @code{__vector} instead of @code{vector}; for example, + +@smallexample +typedef signed short int16; +__vector int16 data; +@end smallexample + +@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{}. +@end itemize @item For C, overloaded functions are implemented with macros so the following