altivec amusement
Joseph S. Myers
jsm28@cam.ac.uk
Mon Feb 25 01:22:00 GMT 2002
On Mon, 25 Feb 2002, Aldy Hernandez wrote:
> joseph, it seems __builtin_types_equal differentiates between
> int foo[]
> and
> int *foo
>
> so what brad is trying to do won't work.
>
> is __builtin_types_equal doing the right thing?
__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
up getting passed to the function does have those conversions applied.)
--
Joseph S. Myers
jsm28@cam.ac.uk
More information about the Gcc
mailing list