This is the mail archive of the gcc@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: More altivec array initialisation troubles


Am Fre, 2002-02-22 um 18.09 schrieb Graham Stott:
> Try casting each of the vector initialiser to vectors
> 
> {
> 	{(vector signed short){1, 2, 3, 4, 5, 6, 7, 8}},
> 	{(vector signed short){11, 12, 13, 14, 15, 16, 17, 18}},
> ;	...
> }

Doesn't work:
test.c:19: warning: braces around scalar initializer
test.c:19: warning: (near initialization for `test4[0]')
test.c:19: incompatible types in initialization
test.c:19: initializer element is not constant
test.c:19: (near initialization for `test4[0]')
test.c:19: initializer element is not constant
test.c:19: (near initialization for `test4[0]')
test.c:20: warning: braces around scalar initializer
test.c:20: warning: (near initialization for `test4[1]')
test.c:20: initializer element is not constant
test.c:20: (near initialization for `test4[1]')
test.c:20: initializer element is not constant
test.c:20: (near initialization for `test4[1]')
test.c:21: warning: braces around scalar initializer
test.c:21: warning: (near initialization for `test4[2]')
test.c:21: initializer element is not constant
test.c:21: (near initialization for `test4[2]')
test.c:21: initializer element is not constant
test.c:21: (near initialization for `test4[2]')
test.c:22: warning: braces around scalar initializer
test.c:22: warning: (near initialization for `test4[3]')
test.c:22: initializer element is not constant
test.c:22: (near initialization for `test4[3]')
test.c:22: initializer element is not constant
test.c:22: (near initialization for `test4[3]')
 
-- 
Servus,
       Daniel


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