+2020-04-17 Martin Liska <mliska@suse.cz>
+
+ PR lto/94612
+ * lto-common.c: Initialize file_data->lto_section_header
+ before lto_mode_identity_table call. It is needed because
+ it decompresses a LTO section.
+
2020-04-08 Martin Liska <mliska@suse.cz>
PR c++/94314
file_data->renaming_hash_table = lto_create_renaming_table ();
file_data->file_name = file->filename;
file_data->order = order;
-#ifdef ACCEL_COMPILER
- lto_input_mode_table (file_data);
-#else
- file_data->mode_table = lto_mode_identity_table;
-#endif
/* Read and verify LTO section. */
data = lto_get_summary_section_data (file_data, LTO_section_lto, &len);
file_data->lto_section_header.minor_version,
file_data->file_name);
+#ifdef ACCEL_COMPILER
+ lto_input_mode_table (file_data);
+#else
+ file_data->mode_table = lto_mode_identity_table;
+#endif
+
data = lto_get_summary_section_data (file_data, LTO_section_decls, &len);
if (data == NULL)
{