summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-08 07:42:56 +0000
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-08 07:42:56 +0000
commita8146e4f049c4eed26bdfd10b766058771091535 (patch)
tree3ded9c6619acf17ba3cafe806dc45640f501fbaa /gcc
parent301a5e52d13500f4b48ce5459d5419db59632bce (diff)
downloadgcc-a8146e4f049c4eed26bdfd10b766058771091535.tar.gz
* cgraph.h (cgraph_calls_p): Remove.
* cgraph.c (cgraph_calls_p): Likewise. * varray.h (varray_copy): Remove. * varray.c (varray_copy): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90261 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/cgraph.c15
-rw-r--r--gcc/cgraph.h1
-rw-r--r--gcc/varray.c19
-rw-r--r--gcc/varray.h2
5 files changed, 8 insertions, 37 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a4965d929fc..163deb9a01e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2004-11-08 Ben Elliston <bje@au.ibm.com>
+
+ * cgraph.h (cgraph_calls_p): Remove.
+ * cgraph.c (cgraph_calls_p): Likewise.
+
+ * varray.h (varray_copy): Remove.
+ * varray.c (varray_copy): Likewise.
+
2004-11-07 Andrew Pinski <pinskia@physics.uc.edu>
PR target/18269
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index edde1a978d3..0908b6a02eb 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -386,21 +386,6 @@ cgraph_mark_needed_node (struct cgraph_node *node)
cgraph_mark_reachable_node (node);
}
-/* Return true when CALLER_DECL calls CALLEE_DECL. */
-
-bool
-cgraph_calls_p (tree caller_decl, tree callee_decl)
-{
- struct cgraph_node *caller = cgraph_node (caller_decl);
- struct cgraph_node *callee = cgraph_node (callee_decl);
- struct cgraph_edge *edge;
-
- for (edge = callee->callers; edge && (edge)->caller != caller;
- edge = (edge->next_caller))
- continue;
- return edge != NULL;
-}
-
/* Return local info for the compiled function. */
struct cgraph_local_info *
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index 180ddb8f40c..cd4c9d10566 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -169,7 +169,6 @@ struct cgraph_edge *cgraph_create_edge (struct cgraph_node *,
tree);
struct cgraph_node *cgraph_node (tree decl);
struct cgraph_edge *cgraph_edge (struct cgraph_node *, tree call_expr);
-bool cgraph_calls_p (tree, tree);
struct cgraph_local_info *cgraph_local_info (tree);
struct cgraph_global_info *cgraph_global_info (tree);
struct cgraph_rtl_info *cgraph_rtl_info (tree);
diff --git a/gcc/varray.c b/gcc/varray.c
index c5c3a8ec420..ce3503b8bcd 100644
--- a/gcc/varray.c
+++ b/gcc/varray.c
@@ -218,25 +218,6 @@ varray_underflow (varray_type va, const char *file, int line,
#endif
-/* Copy varray V2 into varray V1. Both arrays must be the same size
- and type. */
-
-void
-varray_copy (varray_type v1, varray_type v2)
-{
- size_t data_size;
-
- if (v1->type != v2->type)
- abort ();
-
- if (v1->num_elements != v2->num_elements)
- abort ();
-
- data_size = element[v2->type].size * v2->num_elements;
- memcpy (v1->data.c, v2->data.c, data_size);
- v1->elements_used = v2->elements_used;
-}
-
/* Output per-varray statistics. */
#ifdef GATHER_STATISTICS
diff --git a/gcc/varray.h b/gcc/varray.h
index 371e4e70bcb..f1012f4a5c4 100644
--- a/gcc/varray.h
+++ b/gcc/varray.h
@@ -240,8 +240,6 @@ extern varray_type varray_grow (varray_type, size_t);
#define VARRAY_CLEAR(VA) varray_clear(VA)
extern void varray_clear (varray_type);
-extern void varray_copy (varray_type v1, varray_type v2);
-
extern void dump_varray_statistics (void);
/* Check for VARRAY_xxx macros being in bound. */