2019-07-04 Martin Liska <mliska@suse.cz>
PR lto/91078
* lto-common.c (lto_file_finalize): Use memcpy to set
file_data->lto_section_header.
From-SVN: r273077
+2019-07-04 Martin Liska <mliska@suse.cz>
+
+ PR lto/91078
+ * lto-common.c (lto_file_finalize): Use memcpy to set
+ file_data->lto_section_header.
+
2019-07-03 Martin Liska <mliska@suse.cz>
* lto-common.c: Read LTO section and verify header.
return;
}
- file_data->lto_section_header = *(const lto_section *)data;
+ memcpy (&file_data->lto_section_header, data, sizeof (lto_section));
lto_check_version (file_data->lto_section_header.major_version,
file_data->lto_section_header.minor_version,
file_data->file_name);