altivec still broken?!
Ziemowit Laski
zlaski@ziemas.net
Thu Apr 29 21:21:00 GMT 2004
I suspect we may be in need of a target hook :-) for VECTOR_TYPE
comparison, since it appears that SPE and AltiVec (not to mention
MMX/SSE) may require different semantics in this regard. A
one-size-fits-all approach for vectors may not be feasible.
My 2 zlotys,
--Zem
On 29 Apr 2004, at 10.02, Paolo Bonzini wrote:
> I actually found a bug that is solved in my implementation of
> comptypes. It is a contrived example and it is in C++, but is indeed
> a bug.
>
> 1 template <class T> class X {
> 2 };
> 3
> 4 template <> class X<__ev64_opaque__> {
> 5 };
> 6
> 7 typedef int v2si __attribute__ ((vector_size (8)));
> 8
> 9 template <> class X<v2si> {
> 10 };
>
> With my patch, this compiles. With rth's proposed resolution
> of comptypes for vector types, instead it gives a wrong error
>
> /home/utente/aaa.c:9: error: redefinition of `class X<int __vector__>'
> /home/utente/aaa.c:4: error: previous definition of `class X<int
> __vector__>'
>
> Paolo
>
>
>
More information about the Gcc
mailing list