lto-streamer-out.c (struct sccs): Turn to ...
commita4b0388b2453efd5d9cb4caf38608e7be4d8e007
authorJan Hubicka <hubicka@ucw.cz>
Fri, 25 Jul 2014 16:58:21 +0000 (25 18:58 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 25 Jul 2014 16:58:21 +0000 (25 16:58 +0000)
tree62d950f6cac8792ed05ffe1b946056437d64a5c0
parent770f687ddb80845d472bb7a09b32b1e5db9db1f9
lto-streamer-out.c (struct sccs): Turn to ...

* lto-streamer-out.c (struct sccs): Turn to ...
(class DFS): ... this one; refactor the DFS walk so it can
be re-done on per-SCC basis.
(DFS::DFS): New constructor.
(DFS::~DFS): New destructor.
(hash_tree): Add new MAP argument holding in-SCC hash values;
remove POINTER_TYPE hashing hack.
(scc_entry_compare): Rename to ...
(DFS::scc_entry_compare): ... this one.
(hash_scc): Rename to ...
(DFS::hash_scc): ... this one; pass output_block instead
of streamer_cache; work harder to get unique and stable SCC
hashes.
(DFS_write_tree): Rename to ...
(DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
(lto_output_tree): Update.

Co-Authored-By: Richard Biener <rguenther@suse.de>
From-SVN: r213059
gcc/ChangeLog
gcc/lto-streamer-out.c