mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-16 09:10:38 +08:00
Initialize file_data->lto_section_header before lto_mode_identity_table call.
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.
This commit is contained in:
parent
a64468a303
commit
b835645c7a
gcc/lto
@ -1,3 +1,10 @@
|
||||
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
|
||||
|
@ -2197,11 +2197,6 @@ lto_file_finalize (struct lto_file_decl_data *file_data, lto_file *file,
|
||||
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);
|
||||
@ -2217,6 +2212,12 @@ lto_file_finalize (struct lto_file_decl_data *file_data, lto_file *file,
|
||||
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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user