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: What happens with __attribute__((vector_size(8))) short a ={1, -1};?


Hi Andrew,

> > When the vector size and the amount of initialization do not match like
> >
> >   __attribute__((vector_size(8))) short a = {1, -1};
> >
> > what is supposed to happen?  Is the initialization assumed to be like 
> > so?
> >
> 
> This one, just like structs work:
> >   {1, -1, 0, 0}

Thank you for a quick reply.  Do you happen to know where this
assumption is implemented?  I am in the middle of debugging the
failure of compile/20000804-1.c on H8.

Thanks,

Kazu Hirata


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