* convert.c (convert_to_vector): Replace recursive call with
error_mark_node.
* gcc.dg/convert-vec-1.c: New test.
From-SVN: r87340
2004-09-10 James E Wilson <wilson@specifixinc.com>
+ * convert.c (convert_to_vector): Replace recursive call with
+ error_mark_node.
+
* emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
Add integer argument named constant. Use const_tiny_rtx instead of
CONST0_RTX.
default:
error ("can't convert value to a vector");
- return convert_to_vector (type, integer_zero_node);
+ return error_mark_node;
}
}
+2004-09-10 James E Wilson <wilson@specifixinc.com>
+
+ * gcc.dg/convert-vec-1.c: New test.
+
2004-09-10 Roger Sayle <roger@eyesopen.com>
PR middle-end/17024
--- /dev/null
+/* { dg-do compile } */
+typedef float v2sf __attribute__ ((vector_size (8)));
+v2sf sub (void) { return (v2sf) 0.0; } /* { dg-error "can't convert" } */