Commit 273d67e7 by James E Wilson Committed by Jim Wilson

Fix excess errors problem for invalid vector testcase.

* convert.c (convert_to_vector): Replace recursive call with
error_mark_node.
* gcc.dg/convert-vec-1.c: New test.

From-SVN: r87340
parent 3ae472c2
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
2004-09-10 James E Wilson <wilson@specifixinc.com> 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. * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
Add integer argument named constant. Use const_tiny_rtx instead of Add integer argument named constant. Use const_tiny_rtx instead of
CONST0_RTX. CONST0_RTX.
......
...@@ -761,6 +761,6 @@ convert_to_vector (tree type, tree expr) ...@@ -761,6 +761,6 @@ convert_to_vector (tree type, tree expr)
default: default:
error ("can't convert value to a vector"); 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> 2004-09-10 Roger Sayle <roger@eyesopen.com>
PR middle-end/17024 PR middle-end/17024
......
/* { dg-do compile } */
typedef float v2sf __attribute__ ((vector_size (8)));
v2sf sub (void) { return (v2sf) 0.0; } /* { dg-error "can't convert" } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment