This is the mail archive of the gcc-patches@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: PR/14899 patch ping^2


On Tue, May 04, 2004 at 03:53:37PM +0200, Paolo Bonzini wrote:
> 	* c-common.c (vector_types_compatible_p): New function.

Looks plausible.  I'd prefer that this be renamed "convertible"
instead of "compatible".

>      case COMPLEX_TYPE:
>        return same_type_p (TREE_TYPE (t1), TREE_TYPE (t2));
>  
> +    case VECTOR_TYPE:
> +      return TYPE_VECTOR_SUBPARTS (t1) == TYPE_VECTOR_SUBPARTS (t2)
> +	     && comptypes (TREE_TYPE (t1), TREE_TYPE (t2), 0);

Fairly sure that last line should be same_type_p.


r~


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