This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: What happens with __attribute__((vector_size(8))) short a = {1, -1};?
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>, Kazu Hirata <kazu at cs dot umass dot edu>, gcc at gcc dot gnu dot org
- Date: Thu, 19 Jun 2003 10:11:48 -0400
- Subject: 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