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};?



On Thursday, Jun 19, 2003, at 10:07 US/Eastern, Aldy Hernandez wrote:
This one, just like structs work:
{1, -1, 0, 0}

It's supposed to initialize the non existing elements to zero.


I just tried it and it seems like it's horribly broken though.

I'm getting:

(const_vector:V2SI [
        (const_int 1 [0x1])
        (nil)
    ])

...for a partial initialization of a V2SI value, which is completely bogus.

It has been filed under pr 11243. Thanks, Andrew Pinski


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