summaryrefslogtreecommitdiff
path: root/gcc/convert.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-11 03:29:07 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-11 03:29:07 +0000
commit9c4b42a56fddaac9733c74076a3b318bc2ad6161 (patch)
treeefc52425613ba96343a5e518ede1c52e88b645b0 /gcc/convert.c
parentfe9b47ebb74235f2b3230a72962e31de86ba08f5 (diff)
downloadgcc-9c4b42a56fddaac9733c74076a3b318bc2ad6161.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87340 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/convert.c')
-rw-r--r--gcc/convert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/convert.c b/gcc/convert.c
index ceefbf24906..36bae1c7793 100644
--- a/gcc/convert.c
+++ b/gcc/convert.c
@@ -761,6 +761,6 @@ convert_to_vector (tree type, tree expr)
default:
error ("can't convert value to a vector");
- return convert_to_vector (type, integer_zero_node);
+ return error_mark_node;
}
}