diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-06-18 12:56:42 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-06-18 12:56:42 +0000 |
commit | be1cd1115338b965db5760b8af2eed4437b23882 (patch) | |
tree | 9e68c4d64c5b3c8af30ab8699be281e4d320a8e2 /gcc/tree-streamer.h | |
parent | 9da0ec36ea2482335b06865e2644edac01b10ad6 (diff) | |
download | gcc-be1cd1115338b965db5760b8af2eed4437b23882.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200168 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-streamer.h')
-rw-r--r-- | gcc/tree-streamer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-streamer.h b/gcc/tree-streamer.h index d28552846c2..241eae2c1bf 100644 --- a/gcc/tree-streamer.h +++ b/gcc/tree-streamer.h @@ -98,7 +98,7 @@ void streamer_tree_cache_append (struct streamer_tree_cache_d *, tree, hashval_t); bool streamer_tree_cache_lookup (struct streamer_tree_cache_d *, tree, unsigned *); -struct streamer_tree_cache_d *streamer_tree_cache_create (bool); +struct streamer_tree_cache_d *streamer_tree_cache_create (bool, bool); void streamer_tree_cache_delete (struct streamer_tree_cache_d *); /* Return the tree node at slot IX in CACHE. */ |