aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2015-12-13 03:12:15 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2015-12-13 02:12:15 +0000
commitca83487662329ae9130ffbf72fae7dbfe4fddb83 (patch)
treed18c6e4f8e505e7d6ec7206494843089e5e6d216 /gcc/lto
parentb44c0c0c7fd037165e5c8ddd20d5f2986e29d309 (diff)
downloadgcc-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')
-rw-r--r--gcc/lto/ChangeLog4
-rw-r--r--gcc/lto/lto.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index f0d90fc..6e90527 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -1,3 +1,7 @@
+2015-12-10 Jan Hubicka <hubicka@ucw.cz>
+
+ * lto.c (lto_read_in_decl_state): Unpickle compressed bit.
+
2015-12-11 Jan Hubicka <hubicka@ucw.cz>
PR ipa/61886
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))
{