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: broken arithmetic operations on vectors (c and c++)


On Tue, Jun 14, 2005 at 03:01:30PM -0400, Aldy Hernandez wrote:
> +   if (code0 == VECTOR_TYPE && code1 == VECTOR_TYPE)
> +     {
> +       if (!tree_int_cst_equal (TYPE_SIZE (type0), TYPE_SIZE (type1))
> + 	  || !same_scalar_type_ignoring_signedness (TREE_TYPE (type0),
> + 						    TREE_TYPE (type1)))
> + 	{
> + 	  binary_op_error (code);
> + 	  return error_mark_node;
> + 	}
> +     }
> + 

It looks like this should do down below the switch with the other
special cases.  But otherwise ok.


r~


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