From: Richard Guenther Date: Fri, 11 Dec 2009 15:52:57 +0000 (+0000) Subject: re PR lto/42037 ("grow domain error" in lto1) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e7d00517fafe1217d98ed39e4923e45464f92da0;p=gcc.git 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 --- 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); }