Commit 34a9bcaf by Bill Schmidt Committed by William Schmidt

extend.texi (PowerPC Altivec/VSX Built-in Functions): Describe when a typedef…

extend.texi (PowerPC Altivec/VSX Built-in Functions): Describe when a typedef name can be used as the type specifier for a vector type...

2018-12-18  Bill Schmidt  <wschmidt@linux.ibm.com>

	* 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.

From-SVN: r267232
parent 68d459d9
2018-12-18 Bill Schmidt <wschmidt@linux.ibm.com>
* 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 <jozef.l@mittosystems.com>
* config/msp430/msp430.h: Define TARGET_VTABLE_ENTRY_ALIGN.
......@@ -16616,7 +16616,30 @@ disabled. To use them, you must include @code{<altivec.h>} 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{<altivec.h>}.
@end itemize
@item
For C, overloaded functions are implemented with macros so the following
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment