aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@codesourcery.com>2010-05-15 18:41:11 +0000
committerNathan Froyd <froydnj@gcc.gnu.org>2010-05-15 18:41:11 +0000
commitb75bdd292f589b7dc457145842a511579159b055 (patch)
treeb48cfa0ebdf01ed4d5b4df36c9cce38a425d24fa /gcc
parentade41c1df254ba66f8aaf543973352df35013e56 (diff)
downloadgcc-b75bdd292f589b7dc457145842a511579159b055.zip
gcc-b75bdd292f589b7dc457145842a511579159b055.tar.gz
gcc-b75bdd292f589b7dc457145842a511579159b055.tar.bz2
tree.h (ctor_to_list): Delete.
* tree.h (ctor_to_list): Delete. * tree.c (ctor_to_list): Delete. From-SVN: r159437
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree.c19
-rw-r--r--gcc/tree.h4
3 files changed, 5 insertions, 23 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9971c4d..05a01ab 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
+
+ * tree.h (ctor_to_list): Delete.
+ * tree.c (ctor_to_list): Delete.
+
2010-05-15 Jan Hubicka <jh@suse.cz>
* ipa-reference.c: Include toplev.h
diff --git a/gcc/tree.c b/gcc/tree.c
index acbdeee..9dbd084 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -2124,25 +2124,6 @@ tree_cons_stat (tree purpose, tree value, tree chain MEM_STAT_DECL)
return node;
}
-/* Return the elements of a CONSTRUCTOR as a TREE_LIST. */
-
-tree
-ctor_to_list (tree ctor)
-{
- tree list = NULL_TREE;
- tree *p = &list;
- unsigned ix;
- tree purpose, val;
-
- FOR_EACH_CONSTRUCTOR_ELT (CONSTRUCTOR_ELTS (ctor), ix, purpose, val)
- {
- *p = build_tree_list (purpose, val);
- p = &TREE_CHAIN (*p);
- }
-
- return list;
-}
-
/* Return the values of the elements of a CONSTRUCTOR as a vector of
trees. */
diff --git a/gcc/tree.h b/gcc/tree.h
index 7f9a54c..c5747b5 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -4475,10 +4475,6 @@ extern tree first_field (const_tree);
extern bool initializer_zerop (const_tree);
-/* Given a CONSTRUCTOR CTOR, return the elements as a TREE_LIST. */
-
-extern tree ctor_to_list (tree);
-
/* Given a CONSTRUCTOR CTOR, return the element values as a vector. */
extern VEC(tree,gc) *ctor_to_vec (tree);