This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: altivec amusement
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: Brad Lucier <lucier at math dot purdue dot edu>, GCC Mailinglist <gcc at gcc dot gnu dot org>
- Date: Tue, 26 Feb 2002 09:19:17 +0000 (GMT)
- Subject: Re: altivec amusement
On Tue, 26 Feb 2002, Aldy Hernandez wrote:
> int x[5];
> int *y;
> int foo[__builtin_types_compatible_p (__typeof(x), __typeof(y)) == 1 ?
> 1 : -1];
>
> brad wants the above to compile.
>
> otherwise you can never pass an "int []" when we expect an
> "int *" to an altivec macro/"overloaded function".
Perhaps then you should be using __typeof(*x) and __typeof(*y)? (Or
explicitly checking for array types.)
--
Joseph S. Myers
jsm28@cam.ac.uk