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 amusement


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


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