diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2015-12-13 03:12:15 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-12-13 02:12:15 +0000 |
commit | ca83487662329ae9130ffbf72fae7dbfe4fddb83 (patch) | |
tree | d18c6e4f8e505e7d6ec7206494843089e5e6d216 /gcc/lto/lto.c | |
parent | b44c0c0c7fd037165e5c8ddd20d5f2986e29d309 (diff) | |
download | gcc-ca83487662329ae9130ffbf72fae7dbfe4fddb83.zip gcc-ca83487662329ae9130ffbf72fae7dbfe4fddb83.tar.gz gcc-ca83487662329ae9130ffbf72fae7dbfe4fddb83.tar.bz2 |
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
Diffstat (limited to 'gcc/lto/lto.c')
-rw-r--r-- | gcc/lto/lto.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 1b11439..fcf7caf 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -234,6 +234,8 @@ lto_read_in_decl_state (struct data_in *data_in, const uint32_t *data, uint32_t i, j; ix = *data++; + state->compressed = ix & 1; + ix /= 2; decl = streamer_tree_cache_get_tree (data_in->reader_cache, ix); if (!VAR_OR_FUNCTION_DECL_P (decl)) { |