Even stricter implicit conversions between vectors

Mike Stump mrs@apple.com
Tue Oct 31 20:21:00 GMT 2006


On Oct 31, 2006, at 11:52 AM, Andrew Pinski wrote:
> #define vector __attribute__((vector_size(16) ))
>
> vector int f(vector int, vector unsigned int);
>
> int g(void)
> {
>   vector int t;
>   vector int t1;
>   vector unsigned int t2;
>   t2 = f(t,t1);
> }

Our 3.3 compiler gives:

t.c:10: error: incompatible type for argument 2 of `f'
t.c:10: error: incompatible types in assignment

so, if this represents what you want to do, certainly this probably  
would be safe.



More information about the Gcc mailing list