Add .gnu.lto_.lto section

Programming / Compilers / GCC - marxin [138bc75d-0d04-0410-961f-82ee72b054a4] - 3 July 2019 08:36 EDT

2019-07-03 Martin Liska

- lto-section-in.c (lto_get_section_data): Add "lto" section.
- lto-section-out.c (lto_destroy_simple_output_block): Never compress LTO_section_lto section.
- lto-streamer-out.c (produce_asm): Do not set major_version and minor_version. (lto_output_toplevel_asms): Likewise. (produce_lto_section): New function. (lto_output): Call produce_lto_section. (lto_write_mode_table): Do not set major_version and minor_version. (produce_asm_for_decls): Likewise.
- lto-streamer.h (enum lto_section_type): Add LTO_section_lto type. (struct lto_header): Remove. (struct lto_section): New struct. (struct lto_simple_header): Do not inherit from lto_header. (struct lto_file_decl_data): Add lto_section_header field. 2019-07-03 Martin Liska

- lto-common.c: Read LTO section and verify header.

96a0ca19c09 Add .gnu.lto_.lto section.
gcc/ChangeLog | 20 ++++++++++++++++++++
gcc/lto-section-in.c | 9 +++------
gcc/lto-section-out.c | 2 --
gcc/lto-streamer-out.c | 40 +++++++++++++++++++++++++---------------
gcc/lto-streamer.h | 25 +++++++++++++++++++++----
gcc/lto/ChangeLog | 4 ++++
gcc/lto/lto-common.c | 15 +++++++++++++++
7 files changed, 88 insertions(+), 27 deletions(-)

Upstream: gcc.gnu.org


  • Share