This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/18583] New: error on valid code: const __attribute__((altivec(vector__))) doesn't work in arrays
- From: "lu_zero at gentoo dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Nov 2004 22:06:20 -0000
- Subject: [Bug c/18583] New: error on valid code: const __attribute__((altivec(vector__))) doesn't work in arrays
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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