diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-11 15:09:53 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-11 15:09:53 +0000 |
commit | fb210ebfb16fee76a399112105ed0a160d28e770 (patch) | |
tree | 5fb965182f3c4a98a305b3e83552e71214696219 /gcc/read-rtl.c | |
parent | baf63f2456555c60fd172473c31080f1125f7c3c (diff) | |
download | gcc-fb210ebfb16fee76a399112105ed0a160d28e770.tar.gz |
* read-rtl.c (read_rtx_1): Give fatal error if we see a vector
with no elements.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94879 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/read-rtl.c')
-rw-r--r-- | gcc/read-rtl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/read-rtl.c b/gcc/read-rtl.c index c9a3fee81dd..874dd3b36c8 100644 --- a/gcc/read-rtl.c +++ b/gcc/read-rtl.c @@ -1253,6 +1253,9 @@ read_rtx_1 (FILE *infile) memcpy (&return_vec->elem[0], obstack_finish (&vector_stack), list_counter * sizeof (rtx)); } + else if (format_ptr[i] == 'E') + fatal_with_file_and_line (infile, + "vector must have at least one element"); XVEC (return_rtx, i) = return_vec; obstack_free (&vector_stack, NULL); /* close bracket gotten */ |