diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-10-22 12:17:12 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-10-22 12:17:12 +0000 |
commit | 5575303a6f482c129ab56a29a79d9e88a6288d27 (patch) | |
tree | d44acbe4445b1db4d19a3a590df6f07142ffeaff /gcc/lto-symtab.c | |
parent | ee3f12db46181a28daf58d05b44266b675cade78 (diff) | |
download | gcc-5575303a6f482c129ab56a29a79d9e88a6288d27.tar.gz |
2009-10-22 Richard Guenther <rguenther@suse.de>
* lto-streamer.h (lto_symtab_clear_resolution): Remove.
* lto-symtab.c (lto_symtab_clear_resolution): Likewise.
lto/
* lto.c (lto_fixup_data_t): Remove free_list member.
(lto_fixup_tree): Do not insert into free_list.
(free_decl): Remove.
(lto_fixup_decls): Remove free-list handling.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153452 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-symtab.c')
-rw-r--r-- | gcc/lto-symtab.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/gcc/lto-symtab.c b/gcc/lto-symtab.c index 275875180c6..d292a571e87 100644 --- a/gcc/lto-symtab.c +++ b/gcc/lto-symtab.c @@ -641,53 +641,4 @@ lto_symtab_prevailing_decl (tree decl) return ret->decl; } -/* Remove any storage used to store resolution of DECL. */ - -void -lto_symtab_clear_resolution (tree decl) -{ - struct lto_symtab_entry_def temp; - lto_symtab_entry_t head; - void **slot; - - if (!TREE_PUBLIC (decl)) - return; - - /* LTO FIXME: There should be no DECL_ABSTRACT in the middle end. */ - if (TREE_CODE (decl) == FUNCTION_DECL && DECL_ABSTRACT (decl)) - return; - - gcc_assert (DECL_ASSEMBLER_NAME_SET_P (decl)); - - lto_symtab_maybe_init_hash_table (); - temp.id = DECL_ASSEMBLER_NAME (decl); - slot = htab_find_slot (lto_symtab_identifiers, &temp, NO_INSERT); - if (!*slot) - return; - - head = (lto_symtab_entry_t) *slot; - if (head->decl == decl) - { - if (head->next) - { - *slot = head->next; - head->next = NULL; - } - else - htab_remove_elt (lto_symtab_identifiers, &temp); - } - else - { - lto_symtab_entry_t e; - while (head->next && head->next->decl != decl) - head = head->next; - if (head->next) - { - e = head->next; - head->next = e->next; - e->next = NULL; - } - } -} - #include "gt-lto-symtab.h" |