[Bug c/18583] New: error on valid code: const __attribute__((altivec(vector__))) doesn't work in arrays
lu_zero at gentoo dot org
gcc-bugzilla@gcc.gnu.org
Sat Nov 20 22:06:00 GMT 2004
If you try to have a constant array of vectors on gcc-3.4.3 you you may get
parse errors when they shouldn't.
All seems related to the vector definition and where you place the const attribute.
If you define each array element constant and vector is defined as __vector ->
__attribute__((altivec(__vector))), you may get a parse error; if vector is
defined as __attribute__((vector_size(16))) all works.
If isn't a parser bug, is a documentation issue.
please look at the testcase for further details
--
Summary: error on valid code: const
__attribute__((altivec(vector__))) doesn't work in
arrays
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lu_zero at gentoo dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-unknown-linux-gnu
GCC host triplet: powerpc-unknown-linux-gnu
GCC target triplet: powerpc-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18583
More information about the Gcc-bugs
mailing list