diff options
author | Richard Guenther <rguenther@suse.de> | 2009-12-11 15:52:57 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2009-12-11 15:52:57 +0000 |
commit | e7d00517fafe1217d98ed39e4923e45464f92da0 (patch) | |
tree | e9f5148c264f2186b50920dbe27430587f7261ba /gcc/lto/lto.c | |
parent | 90f5494c89d9242643cde13cbd0d477338440731 (diff) | |
download | gcc-e7d00517fafe1217d98ed39e4923e45464f92da0.zip gcc-e7d00517fafe1217d98ed39e4923e45464f92da0.tar.gz gcc-e7d00517fafe1217d98ed39e4923e45464f92da0.tar.bz2 |
re PR lto/42037 ("grow domain error" in lto1)
2009-12-11 Richard Guenther <rguenther@suse.de>
PR lto/42037
* lto.c (lto_resolution_read): Properly grow the vector.
From-SVN: r155166
Diffstat (limited to 'gcc/lto/lto.c')
-rw-r--r-- | gcc/lto/lto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 4d7c307..c7ac7c3 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); } |