From e7d00517fafe1217d98ed39e4923e45464f92da0 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Fri, 11 Dec 2009 15:52:57 +0000 Subject: [PATCH] re PR lto/42037 ("grow domain error" in lto1) 2009-12-11 Richard Guenther PR lto/42037 * lto.c (lto_resolution_read): Properly grow the vector. From-SVN: r155166 --- gcc/lto/ChangeLog | 5 +++++ gcc/lto/lto.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index a7c4b3b6c43..72d180a0251 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,8 @@ +2009-12-11 Richard Guenther + + PR lto/42037 + * lto.c (lto_resolution_read): Properly grow the vector. + 2009-12-11 Richard Guenther PR lto/41915 diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 4d7c3079b49..c7ac7c32e15 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -344,7 +344,7 @@ lto_resolution_read (FILE *resolution, lto_file *file) internal_error ("Invalid resolution in the resolution file."); VEC_safe_grow_cleared (ld_plugin_symbol_resolution_t, heap, ret, - index + 1); + max_index + 1); VEC_replace (ld_plugin_symbol_resolution_t, ret, index, r); } -- 2.30.2