aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-streamer-in.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2013-06-18 12:56:42 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2013-06-18 12:56:42 +0000
commitac0511f2335deb48bc4c53b4305b1720e2cd7b73 (patch)
tree9e68c4d64c5b3c8af30ab8699be281e4d320a8e2 /gcc/lto-streamer-in.c
parent09485a08d3f4a486b59d969515e94ac3527eb3dd (diff)
downloadgcc-ac0511f2335deb48bc4c53b4305b1720e2cd7b73.zip
gcc-ac0511f2335deb48bc4c53b4305b1720e2cd7b73.tar.gz
gcc-ac0511f2335deb48bc4c53b4305b1720e2cd7b73.tar.bz2
tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
2013-06-18 Richard Biener <rguenther@suse.de> * tree-streamer.h (streamer_tree_cache_create): Adjust prototype. * tree-streamer.c (streamer_tree_cache_create): Make maintaining the map from cache entry to cache index optional. (streamer_tree_cache_replace_tree): Adjust accordingly. (streamer_tree_cache_append): Likewise. (streamer_tree_cache_delete): Likewise. * lto-streamer-in.c (lto_data_in_create): Do not maintain the streamer cache map from cache entry to cache index. * lto-streamer-out.c (create_output_block): Adjust. lto/ * lto.c (lto_register_var_decl_in_symtab): Pass in cache index and use it. (lto_register_function_decl_in_symtab): Likewise. (cmp_tree): New function. (unify_scc): Instead of using the streamer cache map from entry to cache index match up the two maps we have by sorting them. Adjust calls to lto_register_var_decl_in_symtab and lto_register_function_decl_in_symtab. From-SVN: r200168
Diffstat (limited to 'gcc/lto-streamer-in.c')
-rw-r--r--gcc/lto-streamer-in.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c
index 2484cc2..fe7ab7c 100644
--- a/gcc/lto-streamer-in.c
+++ b/gcc/lto-streamer-in.c
@@ -1305,7 +1305,7 @@ lto_data_in_create (struct lto_file_decl_data *file_data, const char *strings,
data_in->strings = strings;
data_in->strings_len = len;
data_in->globals_resolution = resolutions;
- data_in->reader_cache = streamer_tree_cache_create (false);
+ data_in->reader_cache = streamer_tree_cache_create (false, false);
return data_in;
}