diff options
| -rw-r--r-- | gcc/lto/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/lto/lto.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index a7c4b3b..72d180a 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,5 +1,10 @@ 2009-12-11 Richard Guenther <rguenther@suse.de> + PR lto/42037 + * lto.c (lto_resolution_read): Properly grow the vector. + +2009-12-11 Richard Guenther <rguenther@suse.de> + PR lto/41915 * lto-lang.c (lto_init_options): Initialize flag_complex_method to the C99 default. Do not set flag_unit_at_a_time. 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); } |
