aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2005-01-23 19:17:09 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2005-01-23 19:17:09 +0000
commit15f0d971d195829dfea412461cf9796381edbeda (patch)
treec4693c594a35550d028bf6d67398edcbec7b5d1b
parentf3b303fd7fe07164a507fc4d151a32c05a341fe0 (diff)
downloadgcc-15f0d971d195829dfea412461cf9796381edbeda.zip
gcc-15f0d971d195829dfea412461cf9796381edbeda.tar.gz
gcc-15f0d971d195829dfea412461cf9796381edbeda.tar.bz2
cgraph.c (cgraph_varpool_n_nodes): Remove.
* cgraph.c (cgraph_varpool_n_nodes): Remove. (cgraph_varpool_node): Don't access cgraph_varpool_n_nodes. * cgraph.h: Remove the corresponding declaration. From-SVN: r94121
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cgraph.c4
-rw-r--r--gcc/cgraph.h1
3 files changed, 4 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 64247d7..1fcfbd2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -9,6 +9,10 @@
* c-opts.c (c_common_handle_option): Remove all write access
to explicit_flag_signed_bitfields.
+ * cgraph.c (cgraph_varpool_n_nodes): Remove.
+ (cgraph_varpool_node): Don't access cgraph_varpool_n_nodes.
+ * cgraph.h: Remove the corresponding declaration.
+
2005-01-23 Roger Sayle <roger@eyesopen.com>
Eric Botcazou <ebotcazou@libertysurf.fr>
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index a5c9b84..7d1cca2 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -120,9 +120,6 @@ static GTY((param_is (struct cgraph_varpool_node))) htab_t cgraph_varpool_hash;
/* Queue of cgraph nodes scheduled to be lowered and output. */
struct cgraph_varpool_node *cgraph_varpool_nodes_queue;
-/* Number of nodes in existence. */
-int cgraph_varpool_n_nodes;
-
/* The linked list of cgraph varpool nodes. */
static GTY(()) struct cgraph_varpool_node *cgraph_varpool_nodes;
@@ -584,7 +581,6 @@ cgraph_varpool_node (tree decl)
node = ggc_alloc_cleared (sizeof (*node));
node->decl = decl;
node->next = cgraph_varpool_nodes;
- cgraph_varpool_n_nodes++;
cgraph_varpool_nodes = node;
*slot = node;
return node;
diff --git a/gcc/cgraph.h b/gcc/cgraph.h
index d106f36..ae902b2 100644
--- a/gcc/cgraph.h
+++ b/gcc/cgraph.h
@@ -158,7 +158,6 @@ extern GTY(()) int cgraph_max_uid;
extern bool cgraph_global_info_ready;
extern GTY(()) struct cgraph_node *cgraph_nodes_queue;
-extern GTY(()) int cgraph_varpool_n_nodes;
extern GTY(()) struct cgraph_varpool_node *cgraph_varpool_nodes_queue;
/* In cgraph.c */