PR/14899 patch ping^2

Richard Henderson rth@redhat.com
Tue May 4 17:23:00 GMT 2004


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~



More information about the Gcc-patches mailing list