cgraph.c (cgraph_node::get_untransformed_body): Pass compressed flag to lto_get_secti...
authorJan Hubicka <hubicka@ucw.cz>
Sun, 13 Dec 2015 02:12:15 +0000 (03:12 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 13 Dec 2015 02:12:15 +0000 (02:12 +0000)
commitca83487662329ae9130ffbf72fae7dbfe4fddb83
treed18c6e4f8e505e7d6ec7206494843089e5e6d216
parentb44c0c0c7fd037165e5c8ddd20d5f2986e29d309
cgraph.c (cgraph_node::get_untransformed_body): Pass compressed flag to lto_get_section_data.

* cgraph.c (cgraph_node::get_untransformed_body): Pass compressed
flag to lto_get_section_data.
* varpool.c (varpool_node::get_constructor): Likewise.
* lto-section-in.c (lto_get_section_data): Add new flag decompress.
(lto_free_section_data): Likewise.
(lto_get_raw_section_data): New function.
(lto_free_raw_section_data): New function.
(copy_function_or_variable): Copy sections w/o decompressing.
(lto_output_decl_state_refs): Picke compressed bit.
* lto-streamer.h (lto_in_decl_state): New flag compressed.
(lto_out_decl_state): Likewise.
(lto_get_section_data, lto_free_section_data): Update prototypes
(lto_get_raw_section_data, lto_free_raw_section_data): Declare.
(lto_write_raw_data): Declare.
(lto_begin_section): Remove FIXME.
(lto_write_raw_data): New function.
(lto_write_stream): Remove FIXME.
(lto_new_out_decl_state): Set compressed flag.

* lto.c (lto_read_in_decl_state): Unpickle compressed bit.

From-SVN: r231593
gcc/ChangeLog
gcc/cgraph.c
gcc/lto-section-in.c
gcc/lto-streamer.h
gcc/lto/ChangeLog
gcc/lto/lto.c
gcc/varpool.c