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: AltiVec too pedantic about type qualifiers [UPDATE]


Am Mon, 2002-02-25 um 03.03 schrieb Aldy Hernandez:

> first, vec_lvsl accepts "char *" not "const char *", so you'll
> have to cast.

That's about the most annoying thing. What's wrong about loading 
from a constant address?

> second, and most importantly, the altivec specs say that
> vec_lvsl() returns a "vector unsigned char" for any of its
> variants... so you'll have to cast the return to "vector signed
> char".  gcc will not do the conversion for you like with
> scalars of signed int/unsigned int.

Yes, that was just a cut-n-pasto in the example.
 
-- 
Servus,
       Daniel


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