diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-08 19:26:06 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-08 19:26:06 +0000 |
commit | f4a9ca14121de19969490f6540653d9c8269c65e (patch) | |
tree | 70fdaaab06e9ea4d611f7e8cc149c83f3760f1f3 /gcc | |
parent | ac5d92aa91d1d257d4b6ac2ccfb45939c57da883 (diff) | |
download | gcc-f4a9ca14121de19969490f6540653d9c8269c65e.tar.gz |
* tree.c (tree_find_value): Remove.
* tree.h: Remove prototype.
* varasm.c (assemble_external): Use value_member instead.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151534 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/tree.c | 12 | ||||
-rw-r--r-- | gcc/tree.h | 4 | ||||
-rw-r--r-- | gcc/varasm.c | 6 |
4 files changed, 9 insertions, 19 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6ed406a6908..199dcd15149 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-09-04 Jason Merrill <jason@redhat.com> + + * tree.c (tree_find_value): Remove. + * tree.h: Remove prototype. + * varasm.c (assemble_external): Use value_member instead. + 2009-09-08 Alexandre Oliva <aoliva@redhat.com> * toplev.c (process_options): Choose default debugging type when diff --git a/gcc/tree.c b/gcc/tree.c index a036439cc3f..010aeff2f57 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -2003,18 +2003,6 @@ tree_last (tree chain) return chain; } -/* Return the node in a chain of nodes whose value is x, NULL if not found. */ - -tree -tree_find_value (tree chain, tree x) -{ - tree list; - for (list = chain; list; list = TREE_CHAIN (list)) - if (TREE_VALUE (list) == x) - return list; - return NULL; -} - /* Reverse the order of elements in the chain T, and return the new head of the chain (old last element). */ diff --git a/gcc/tree.h b/gcc/tree.h index 880f71d9f17..59251b58d14 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -4278,10 +4278,6 @@ extern tree tree_cons_stat (tree, tree, tree MEM_STAT_DECL); extern tree tree_last (tree); -/* Return the node in a chain whose TREE_VALUE is x, NULL if not found. */ - -extern tree tree_find_value (tree, tree); - /* Reverse the order of elements in a chain, and return the new head. */ extern tree nreverse (tree); diff --git a/gcc/varasm.c b/gcc/varasm.c index 864ab16671f..a7fa83fc107 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -2328,11 +2328,11 @@ assemble_external (tree decl ATTRIBUTE_UNUSED) for declarations that can be weak, it happens to be match. */ && !TREE_STATIC (decl) - && tree_find_value (weak_decls, decl) == NULL_TREE) - weak_decls = tree_cons (NULL, decl, weak_decls); + && value_member (decl, weak_decls) == NULL_TREE) + weak_decls = tree_cons (NULL, decl, weak_decls); #ifdef ASM_OUTPUT_EXTERNAL - if (tree_find_value (pending_assemble_externals, decl) == NULL_TREE) + if (value_member (decl, pending_assemble_externals) == NULL_TREE) pending_assemble_externals = tree_cons (NULL, decl, pending_assemble_externals); #endif |