cgraph.c (assembler_name_hash): New static var.
authorJan Hubicka <jh@suse.cz>
Sun, 13 Jul 2008 10:06:19 +0000 (12:06 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 13 Jul 2008 10:06:19 +0000 (10:06 +0000)
commit266ad5c82612749d080ab25f67a677c89b344567
tree1ee8898b82ca9a88353189796c35234da2da21d2
parent52ca125521c3e1d5b9fff7e3710ccbfdd3b2d797
cgraph.c (assembler_name_hash): New static var.

* cgraph.c (assembler_name_hash): New static var.
(hash_node_by_assembler_name, eq_assembler_name): New.
(cgraph_node_for_asm): Use hashtable.
(cgraph_remove_node): Maintain hashtable.
(change_decl_assembler_name): Sanity check that names are not changing
after aliasing was processed.
* cgraph.h (varpoon_node): Add next GGC marker.
* tree.c (decl_assembler_name_equal): Constify.
(decl_assembler_name_hash): New.
* tree.h (decl_assembler_name_equal): Constify.
(decl_assembler_name_hash): Update.

From-SVN: r137753
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/tree.c
gcc/tree.h
gcc/varasm.c