https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64377
--- Comment #10 from Sandra Loosemore <sandra at codesourcery dot com> --- Test results do not look good with the new patch; over 7000 new failures on -flto tests in the gcc testsuite alone. :-( I see a lot of lto1: internal compiler error: in operator[], at vec.h:736 0x884aba2 vec<tree_node*, va_heap, vl_embed>::operator[](unsigned int) /scratch/sandra/nios2-elf-fsf/src/gcc-mainline/gcc/vec.h:736 0x884aba2 vec<tree_node*, va_heap, vl_ptr>::operator[](unsigned int) /scratch/sandra/nios2-elf-fsf/src/gcc-mainline/gcc/vec.h:1202 0x884aba2 streamer_tree_cache_get_tree /scratch/sandra/nios2-elf-fsf/src/gcc-mainline/gcc/tree-streamer.h:112 0x884aba2 streamer_get_pickled_tree(lto_input_block*, data_in*) /scratch/sandra/nios2-elf-fsf/src/gcc-mainline/gcc/tree-streamer-in.c:1112 0x84fa1fb lto_input_tree_1(lto_input_block*, data_in*, LTO_tags, unsigned int) /scratch/sandra/nios2-elf-fsf/src/gcc-mainline/gcc/lto-streamer-in.c:1303 0x84fa5ef lto_input_tree(lto_input_block*, data_in*) /scratch/sandra/nios2-elf-fsf/src/gcc-mainline/gcc/lto-streamer-in.c:1349 0x8849997 lto_input_ts_common_tree_pointers /scratch/sandra/nios2-elf-fsf/src/gcc-mainline/gcc/tree-streamer-in.c:666 0x8849997 streamer_read_tree_body(lto_input_block*, data_in*, tree_node*) /scratch/sandra/nios2-elf-fsf/src/gcc-mainline/gcc/tree-streamer-in.c:1044 0x84f9aef lto_read_tree_1 /scratch/sandra/nios2-elf-fsf/src/gcc-mainline/gcc/lto-streamer-in.c:1179 0x84fa069 lto_read_tree /scratch/sandra/nios2-elf-fsf/src/gcc-mainline/gcc/lto-streamer-in.c:1213 0x84fa069 lto_input_tree_1 /scratch/sandra/nios2-elf-fsf/src/gcc-mainline/gcc/lto-streamer-in.c:1332 0x84fa069 lto_input_tree_1(lto_input_block*, data_in*, LTO_tags, unsigned int) /scratch/sandra/nios2-elf-fsf/src/gcc-mainline/gcc/lto-streamer-in.c:1283 0x84fa501 lto_input_scc(lto_input_block*, data_in*, unsigned int*, unsigned int*) /scratch/sandra/nios2-elf-fsf/src/gcc-mainline/gcc/lto-streamer-in.c:1237 0x81a8336 lto_read_decls /scratch/sandra/nios2-elf-fsf/src/gcc-mainline/gcc/lto/lto.c:1899 0x81aac1e lto_file_finalize /scratch/sandra/nios2-elf-fsf/src/gcc-mainline/gcc/lto/lto.c:2228 0x81aac1e lto_create_files_from_ids /scratch/sandra/nios2-elf-fsf/src/gcc-mainline/gcc/lto/lto.c:2238 0x81aac1e lto_file_read /scratch/sandra/nios2-elf-fsf/src/gcc-mainline/gcc/lto/lto.c:2279 0x81aac1e read_cgraph_and_symbols /scratch/sandra/nios2-elf-fsf/src/gcc-mainline/gcc/lto/lto.c:2980 0x81aac1e lto_main() /scratch/sandra/nios2-elf-fsf/src/gcc-mainline/gcc/lto/lto.c:3435 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. lto-wrapper: fatal error: nios2-elf-gcc returned 1 exit status compilation terminated.