This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: altivec amusement
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Cc: Brad Lucier <lucier at math dot purdue dot edu>, GCC Mailinglist <gcc at gcc dot gnu dot org>
- Date: Tue, 26 Feb 2002 10:40:18 +1100
- Subject: Re: altivec amusement
> __builtin_types_compatible_p correctly distinguishes. __typeof
> correctly
> acts like sizeof in that the array-to-pointer and function-to-pointer
> conversions do not apply to its argument. (Of course the value that
> ends
what i'm talking about is this:
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 __builtin_types_compatible_p should return true for pointers
and array of the same underlying type (?)
> up getting passed to the function does have those conversions applied.)
>
> --
> Joseph S. Myers
> jsm28@cam.ac.uk
>
>
--
Aldy Hernandez E-mail: aldyh@redhat.com
Professional Gypsy Lost in Australia
Red Hat, Inc.